!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php54/usr/share/pear/test/Routing/Symfony/Component/Routing/Tests/Matcher/   drwxr-xr-x
Free 292.48 GB of 429.69 GB (68.07%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ApacheUrlMatcherTest.php (5.09 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Routing\Tests\Matcher;

use 
Symfony\Component\Routing\RouteCollection;
use 
Symfony\Component\Routing\RequestContext;
use 
Symfony\Component\Routing\Matcher\ApacheUrlMatcher;

class 
ApacheUrlMatcherTest extends \PHPUnit_Framework_TestCase
{
    protected 
$server;

    protected function 
setUp()
    {
        
$this->server $_SERVER;
    }

    protected function 
tearDown()
    {
        
$_SERVER $this->server;
    }

    
/**
     * @dataProvider getMatchData
     */
    
public function testMatch($name$pathinfo$server$expect)
    {
        
$collection = new RouteCollection();
        
$context = new RequestContext();
        
$matcher = new ApacheUrlMatcher($collection$context);

        
$_SERVER $server;

        
$result $matcher->match($pathinfo$server);
        
$this->assertSame(var_export($expecttrue), var_export($resulttrue));
    }

    public function 
getMatchData()
    {
        return array(
            array(
                
'Simple route',
                
'/hello/world',
                array(
                    
'_ROUTING_route' => 'hello',
                    
'_ROUTING_param__controller' => 'AcmeBundle:Default:index',
                    
'_ROUTING_param_name' => 'world',
                ),
                array(
                    
'_controller' => 'AcmeBundle:Default:index',
                    
'name' => 'world',
                    
'_route' => 'hello',
                ),
            ),
            array(
                
'Route with params and defaults',
                
'/hello/hugo',
                array(
                    
'_ROUTING_route' => 'hello',
                    
'_ROUTING_param__controller' => 'AcmeBundle:Default:index',
                    
'_ROUTING_param_name' => 'hugo',
                    
'_ROUTING_default_name' => 'world',
                ),
                array(
                    
'name' => 'hugo',
                    
'_controller' => 'AcmeBundle:Default:index',
                    
'_route' => 'hello',
                ),
            ),
            array(
                
'Route with defaults only',
                
'/hello',
                array(
                    
'_ROUTING_route' => 'hello',
                    
'_ROUTING_param__controller' => 'AcmeBundle:Default:index',
                    
'_ROUTING_default_name' => 'world',
                ),
                array(
                    
'name' => 'world',
                    
'_controller' => 'AcmeBundle:Default:index',
                    
'_route' => 'hello',
                ),
            ),
            array(
                
'Redirect with many ignored attributes',
                
'/legacy/{cat1}/{cat2}/{id}.html',
                array(
                    
'_ROUTING_route' => 'product_view',
                    
'_ROUTING_param__controller' => 'FrameworkBundle:Redirect:redirect',
                    
'_ROUTING_default_ignoreAttributes[0]' => 'attr_a',
                    
'_ROUTING_default_ignoreAttributes[1]' => 'attr_b',
                ),
                array(
                    
'ignoreAttributes' => array('attr_a''attr_b'),
                    
'_controller' => 'FrameworkBundle:Redirect:redirect',
                    
'_route' => 'product_view',
                )
            ),
            array(
                
'REDIRECT_ envs',
                
'/hello/world',
                array(
                    
'REDIRECT__ROUTING_route' => 'hello',
                    
'REDIRECT__ROUTING_param__controller' => 'AcmeBundle:Default:index',
                    
'REDIRECT__ROUTING_param_name' => 'world',
                ),
                array(
                    
'_controller' => 'AcmeBundle:Default:index',
                    
'name' => 'world',
                    
'_route' => 'hello',
                ),
            ),
            array(
                
'REDIRECT_REDIRECT_ envs',
                
'/hello/world',
                array(
                    
'REDIRECT_REDIRECT__ROUTING_route' => 'hello',
                    
'REDIRECT_REDIRECT__ROUTING_param__controller' => 'AcmeBundle:Default:index',
                    
'REDIRECT_REDIRECT__ROUTING_param_name' => 'world',
                ),
                array(
                    
'_controller' => 'AcmeBundle:Default:index',
                    
'name' => 'world',
                    
'_route' => 'hello',
                ),
            ),
            array(
                
'REDIRECT_REDIRECT_ envs',
                
'/hello/world',
                array(
                    
'REDIRECT_REDIRECT__ROUTING_route' => 'hello',
                    
'REDIRECT_REDIRECT__ROUTING_param__controller' => 'AcmeBundle:Default:index',
                    
'REDIRECT_REDIRECT__ROUTING_param_name' => 'world',
                ),
                array(
                    
'_controller' => 'AcmeBundle:Default:index',
                    
'name' => 'world',
                    
'_route' => 'hello',
                ),
            )
        );
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0983 ]--