You are here

public function DefinitionDecoratorTest::testSetArgument in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Tests/DefinitionDecoratorTest.php \Symfony\Component\DependencyInjection\Tests\DefinitionDecoratorTest::testSetArgument()

File

vendor/symfony/dependency-injection/Tests/DefinitionDecoratorTest.php, line 98

Class

DefinitionDecoratorTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

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