You are here

public function DefinitionDecoratorTest::testReplaceArgumentShouldRequireIntegerIndex in Zircon Profile 8.0

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

@expectedException \InvalidArgumentException

File

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

Class

DefinitionDecoratorTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

public function testReplaceArgumentShouldRequireIntegerIndex() {
  $def = new DefinitionDecorator('foo');
  $def
    ->replaceArgument('0', 'foo');
}