public callOnWrappedObject ( string $method, array $arguments = [] ) : |
||
$method | string | |
$arguments | array | |
return |
public function callOnWrappedObject($method, array $arguments = array())
{
return $this->caller->call($method, $arguments);
}
function it_ignores_any_other_exception(Subject $subject, WrappedObject $wrapped) { $subject->callOnWrappedObject('getWrappedObject', array())->willThrow('\\Exception'); $wrapped->getClassName()->willReturn('\\stdClass'); $this->shouldNotThrow('\\Exception')->duringMatch('be', $subject, array(), $wrapped); }