public withArguments ( array $arguments = null ) : self | ||
$arguments | array | |
return | self |
public function withArguments(array $arguments = null) : self
{
$this->throwException(__METHOD__);
}
/** * @expectedException \LogicException * @expectedExceptionMessage By its nature, "Nelmio\Alice\Definition\MethodCall\NoMethodCall::withArguments()" should not be called. */ public function testCannotCreateNewInstanceWithNewArguments() { $call = new NoMethodCall(); $call->withArguments(); }