/** * @covers Symfony\Components\DependencyInjection\ContainerBuilder::registerExtension * @covers Symfony\Components\DependencyInjection\ContainerBuilder::getExtension */ public function testExtension() { $container = new ContainerBuilder(); $container->registerExtension($extension = new \ProjectExtension()); $this->assertTrue($container->getExtension('project') === $extension, '->registerExtension() registers an extension'); }