You are here

public function DefinitionDecoratorTest::testGetArgumentShouldCheckBounds in Zircon Profile 8

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

@expectedException \OutOfBoundsException

File

vendor/symfony/dependency-injection/Tests/DefinitionDecoratorTest.php, line 135

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