!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/DependencyInjection/Symfony/Component/DependencyInjection/Tests/   drwxr-xr-x
Free 294.06 GB of 429.69 GB (68.44%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     CrossCheckTest.php (3.4 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\DependencyInjection\Tests;

use 
Symfony\Component\DependencyInjection\ContainerBuilder;
use 
Symfony\Component\Config\FileLocator;

class 
CrossCheckTest extends \PHPUnit_Framework_TestCase
{
    protected static 
$fixturesPath;

    public static function 
setUpBeforeClass()
    {
        
self::$fixturesPath __DIR__.'/Fixtures/';

        require_once 
self::$fixturesPath.'/includes/classes.php';
        require_once 
self::$fixturesPath.'/includes/foo.php';
    }

    
/**
     * @dataProvider crossCheckLoadersDumpers
     */
    
public function testCrossCheck($fixture$type)
    {
        
$loaderClass 'Symfony\\Component\\DependencyInjection\\Loader\\'.ucfirst($type).'FileLoader';
        
$dumperClass 'Symfony\\Component\\DependencyInjection\\Dumper\\'.ucfirst($type).'Dumper';

        
$tmp tempnam('sf_service_container''sf');

        
file_put_contents($tmpfile_get_contents(self::$fixturesPath.'/'.$type.'/'.$fixture));

        
$container1 = new ContainerBuilder();
        
$loader1 = new $loaderClass($container1, new FileLocator());
        
$loader1->load($tmp);

        
$dumper = new $dumperClass($container1);
        
file_put_contents($tmp$dumper->dump());

        
$container2 = new ContainerBuilder();
        
$loader2 = new $loaderClass($container2, new FileLocator());
        
$loader2->load($tmp);

        
unlink($tmp);

        
$this->assertEquals($container2->getAliases(), $container1->getAliases(), 'loading a dump from a previously loaded container returns the same container');
        
$this->assertEquals($container2->getDefinitions(), $container1->getDefinitions(), 'loading a dump from a previously loaded container returns the same container');
        
$this->assertEquals($container2->getParameterBag()->all(), $container1->getParameterBag()->all(), '->getParameterBag() returns the same value for both containers');

        
$this->assertEquals(serialize($container2), serialize($container1), 'loading a dump from a previously loaded container returns the same container');

        
$services1 = array();
        foreach (
$container1 as $id => $service) {
            
$services1[$id] = serialize($service);
        }
        
$services2 = array();
        foreach (
$container2 as $id => $service) {
            
$services2[$id] = serialize($service);
        }

        unset(
$services1['service_container'], $services2['service_container']);

        
$this->assertEquals($services2$services1'Iterator on the containers returns the same services');
    }

    public function 
crossCheckLoadersDumpers()
    {
        
$tests = array(
            array(
'services1.xml''xml'),
            array(
'services2.xml''xml'),
            array(
'services6.xml''xml'),
            array(
'services8.xml''xml'),
            array(
'services9.xml''xml'),
        );

        if (
class_exists('Symfony\Component\Yaml\Yaml')) {
            
$tests array_merge($tests, array(
                array(
'services1.yml''yaml'),
                array(
'services2.yml''yaml'),
                array(
'services6.yml''yaml'),
                array(
'services8.yml''yaml'),
                array(
'services9.yml''yaml'),
            ));
        }

        return 
$tests;
    }
}

:: 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.0048 ]--