public function InlineServiceDefinitionsPassTest::testProcess in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Tests/Compiler/InlineServiceDefinitionsPassTest.php \Symfony\Component\DependencyInjection\Tests\Compiler\InlineServiceDefinitionsPassTest::testProcess()
File
- vendor/
symfony/ dependency-injection/ Tests/ Compiler/ InlineServiceDefinitionsPassTest.php, line 24
Class
Namespace
Symfony\Component\DependencyInjection\Tests\CompilerCode
public function testProcess() {
$container = new ContainerBuilder();
$container
->register('inlinable.service')
->setPublic(false);
$container
->register('service')
->setArguments(array(
new Reference('inlinable.service'),
));
$this
->process($container);
$arguments = $container
->getDefinition('service')
->getArguments();
$this
->assertInstanceOf('Symfony\\Component\\DependencyInjection\\Definition', $arguments[0]);
$this
->assertSame($container
->getDefinition('inlinable.service'), $arguments[0]);
}