"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/RemoveEmptyControllerArgumentLocatorsPassTest.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

RemoveEmptyControllerArgumentLocatorsPassTest.php  (phplist-3.4.5.tgz):RemoveEmptyControllerArgumentLocatorsPassTest.php  (phplist-3.4.6.tgz)
skipping to change at line 29 skipping to change at line 29
use Symfony\Component\HttpKernel\DependencyInjection\RemoveEmptyControllerArgume ntLocatorsPass; use Symfony\Component\HttpKernel\DependencyInjection\RemoveEmptyControllerArgume ntLocatorsPass;
class RemoveEmptyControllerArgumentLocatorsPassTest extends TestCase class RemoveEmptyControllerArgumentLocatorsPassTest extends TestCase
{ {
public function testProcess() public function testProcess()
{ {
$container = new ContainerBuilder(); $container = new ContainerBuilder();
$resolver = $container->register('argument_resolver.service')->addArgume nt([]); $resolver = $container->register('argument_resolver.service')->addArgume nt([]);
$container->register('stdClass', 'stdClass'); $container->register('stdClass', 'stdClass');
$container->register(parent::class, 'stdClass'); $container->register(TestCase::class, 'stdClass');
$container->register('c1', RemoveTestController1::class)->addTag('contro ller.service_arguments'); $container->register('c1', RemoveTestController1::class)->addTag('contro ller.service_arguments');
$container->register('c2', RemoveTestController2::class)->addTag('contro ller.service_arguments') $container->register('c2', RemoveTestController2::class)->addTag('contro ller.service_arguments')
->addMethodCall('setTestCase', [new Reference('c1')]); ->addMethodCall('setTestCase', [new Reference('c1')]);
$pass = new RegisterControllerArgumentLocatorsPass(); $pass = new RegisterControllerArgumentLocatorsPass();
$pass->process($container); $pass->process($container);
$controllers = $container->getDefinition((string) $resolver->getArgument (0))->getArgument(0); $controllers = $container->getDefinition((string) $resolver->getArgument (0))->getArgument(0);
$this->assertCount(2, $container->getDefinition((string) $controllers['c 1:fooAction']->getValues()[0])->getArgument(0)); $this->assertCount(2, $container->getDefinition((string) $controllers['c 1:fooAction']->getValues()[0])->getArgument(0));
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)