public function DefinitionDecoratorTest::testSetArgument

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/DefinitionDecoratorTest.php, line 64

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