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