public function ContainerBuilderTest::testAddGetCompilerPass in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php \Symfony\Component\DependencyInjection\Tests\ContainerBuilderTest::testAddGetCompilerPass()
@covers Symfony\Component\DependencyInjection\ContainerBuilder::addCompilerPass @covers Symfony\Component\DependencyInjection\ContainerBuilder::getCompilerPassConfig
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ ContainerBuilderTest.php, line 264
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testAddGetCompilerPass() {
$builder = new ContainerBuilder();
$builder
->setResourceTracking(false);
$builderCompilerPasses = $builder
->getCompiler()
->getPassConfig()
->getPasses();
$builder
->addCompilerPass($this
->getMock('Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface'));
$this
->assertCount(count($builder
->getCompiler()
->getPassConfig()
->getPasses()) - 1, $builderCompilerPasses);
}