Linux boca.hozzt.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
LiteSpeed
: 159.253.39.62 | : 3.15.26.145
Cant Read [ /etc/named.conf ]
7.4.33
renovkoron
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
opt /
alt /
php55 /
usr /
share /
pear /
test /
DependencyInjection /
Symfony /
Component /
DependencyInjection /
Tests /
Compiler /
[ HOME SHELL ]
Name
Size
Permission
Action
AnalyzeServiceReferencesPassTe...
3.09
KB
-rw-r--r--
CheckCircularReferencesPassTes...
3.12
KB
-rw-r--r--
CheckDefinitionValidityPassTes...
2.93
KB
-rw-r--r--
CheckExceptionOnInvalidReferen...
1.93
KB
-rw-r--r--
CheckReferenceValidityPassTest...
2.95
KB
-rw-r--r--
InlineServiceDefinitionsPassTe...
5.3
KB
-rw-r--r--
IntegrationTest.php
3.16
KB
-rw-r--r--
RemoveUnusedDefinitionsPassTes...
2.66
KB
-rw-r--r--
ReplaceAliasByActualDefinition...
1.81
KB
-rw-r--r--
ResolveDefinitionTemplatesPass...
4.98
KB
-rw-r--r--
ResolveInvalidReferencesPassTe...
2.47
KB
-rw-r--r--
ResolveReferencesToAliasesPass...
1.56
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : IntegrationTest.php
<?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\Compiler; use Symfony\Component\DependencyInjection\Alias; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\ContainerBuilder; /** * This class tests the integration of the different compiler passes */ class IntegrationTest extends \PHPUnit_Framework_TestCase { /** * This tests that the following dependencies are correctly processed: * * A is public, B/C are private * A -> C * B -> C */ public function testProcessRemovesAndInlinesRecursively() { $container = new ContainerBuilder(); $container->setResourceTracking(false); $a = $container ->register('a', '\stdClass') ->addArgument(new Reference('c')) ; $b = $container ->register('b', '\stdClass') ->addArgument(new Reference('c')) ->setPublic(false) ; $c = $container ->register('c', '\stdClass') ->setPublic(false) ; $container->compile(); $this->assertTrue($container->hasDefinition('a')); $arguments = $a->getArguments(); $this->assertSame($c, $arguments[0]); $this->assertFalse($container->hasDefinition('b')); $this->assertFalse($container->hasDefinition('c')); } public function testProcessInlinesReferencesToAliases() { $container = new ContainerBuilder(); $container->setResourceTracking(false); $a = $container ->register('a', '\stdClass') ->addArgument(new Reference('b')) ; $container->setAlias('b', new Alias('c', false)); $c = $container ->register('c', '\stdClass') ->setPublic(false) ; $container->compile(); $this->assertTrue($container->hasDefinition('a')); $arguments = $a->getArguments(); $this->assertSame($c, $arguments[0]); $this->assertFalse($container->hasAlias('b')); $this->assertFalse($container->hasDefinition('c')); } public function testProcessInlinesWhenThereAreMultipleReferencesButFromTheSameDefinition() { $container = new ContainerBuilder(); $container->setResourceTracking(false); $container ->register('a', '\stdClass') ->addArgument(new Reference('b')) ->addMethodCall('setC', array(new Reference('c'))) ; $container ->register('b', '\stdClass') ->addArgument(new Reference('c')) ->setPublic(false) ; $container ->register('c', '\stdClass') ->setPublic(false) ; $container->compile(); $this->assertTrue($container->hasDefinition('a')); $this->assertFalse($container->hasDefinition('b')); $this->assertFalse($container->hasDefinition('c'), 'Service C was not inlined.'); } }
Close