public function DefinitionDecoratorTest::testSetArgument in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Tests/DefinitionDecoratorTest.php \Symfony\Component\DependencyInjection\Tests\DefinitionDecoratorTest::testSetArgument()
File
- vendor/
symfony/ dependency-injection/ Tests/ DefinitionDecoratorTest.php, line 98
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testSetArgument() {
$def = new DefinitionDecorator('foo');
$this
->assertEquals(array(), $def
->getArguments());
$this
->assertSame($def, $def
->replaceArgument(0, 'foo'));
$this
->assertEquals(array(
'index_0' => 'foo',
), $def
->getArguments());
}