You are here

public function DefinitionTest::testReplaceArgumentShouldCheckBounds in Zircon Profile 8

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

@expectedException \OutOfBoundsException

File

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

Class

DefinitionTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

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