public it_proxies_call_to_callback ( Prophecy\Prophecy\ObjectProphecy $object, Prophecy\Prophecy\MethodProphecy $method, Prophecy\Call\Call $call ) | ||
$object | Prophecy\Prophecy\ObjectProphecy | |
$method | Prophecy\Prophecy\MethodProphecy | |
$call | Prophecy\Call\Call |
function it_proxies_call_to_callback(ObjectProphecy $object, MethodProphecy $method, Call $call)
{
$returnFirstCallCallback = function ($calls, $object, $method) {
throw new RuntimeException();
};
$this->beConstructedWith($returnFirstCallCallback);
$this->shouldThrow('RuntimeException')->duringCheck(array($call), $object, $method);
}