You are here

public function DefinitionTest::testGetArgumentShouldCheckBounds in Zircon Profile 8.0

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

@expectedException \OutOfBoundsException

File

vendor/symfony/dependency-injection/Tests/DefinitionTest.php, line 292

Class

DefinitionTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

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