public function DefinitionDecoratorTest::testGetArgumentShouldCheckBounds

@expectedException OutOfBoundsException

File

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

Class

DefinitionDecoratorTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

public function testGetArgumentShouldCheckBounds() {
  $def = new DefinitionDecorator('foo');
  $def
    ->setArguments(array(
    0 => 'foo',
  ));
  $def
    ->replaceArgument(0, 'foo');
  $def
    ->getArgument(1);
}