4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Routing\Tests\DependencyInjection;
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\Config\Loader\LoaderResolver;
16 use Symfony\Component\DependencyInjection\ContainerBuilder;
17 use Symfony\Component\DependencyInjection\Reference;
18 use Symfony\Component\Routing\DependencyInjection\RoutingResolverPass;
20 class RoutingResolverPassTest extends TestCase
22 public function testProcess()
24 $container = new ContainerBuilder();
25 $container->register('routing.resolver', LoaderResolver::class);
26 $container->register('loader1')->addTag('routing.loader');
27 $container->register('loader2')->addTag('routing.loader');
29 (new RoutingResolverPass())->process($container);
32 array(array('addLoader', array(new Reference('loader1'))), array('addLoader', array(new Reference('loader2')))),
33 $container->getDefinition('routing.resolver')->getMethodCalls()