Symfony\Component\DependencyInjection\Tests\DefinitionDecoratorTest::testSetArgument PHP Method

testSetArgument() public method

public testSetArgument ( )
    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());
    }