@covers Symfony\Component\DependencyInjection\Definition::replaceArgument
public function testSetArgument() {
$def = new Definition('stdClass');
$def
->addArgument('foo');
$this
->assertSame(array(
'foo',
), $def
->getArguments());
$this
->assertSame($def, $def
->replaceArgument(0, 'moo'));
$this
->assertSame(array(
'moo',
), $def
->getArguments());
$def
->addArgument('moo');
$def
->replaceArgument(0, 'foo')
->replaceArgument(1, 'bar');
$this
->assertSame(array(
'foo',
'bar',
), $def
->getArguments());
}