spec\Prophecy\Prediction\CallbackPredictionSpec::it_proxies_call_to_callback PHP Méthode

it_proxies_call_to_callback() public méthode

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);
    }