public function DefinitionTest::testGetArgumentShouldCheckBounds

@expectedException OutOfBoundsException

File

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

Class

DefinitionTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

public function testGetArgumentShouldCheckBounds() {
  $def = new Definition('stdClass');
  $def
    ->addArgument('foo');
  $def
    ->getArgument(1);
}