public function DefinitionTest::testReplaceArgumentShouldCheckBounds

@expectedException OutOfBoundsException

File

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

Class

DefinitionTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

public function testReplaceArgumentShouldCheckBounds() {
  $def = new Definition('stdClass');
  $def
    ->addArgument('foo');
  $def
    ->replaceArgument(1, 'bar');
}