spec\Prophecy\Prophecy\MethodProphecySpec::it_records_even_failed_checked_predictions PHP Method

it_records_even_failed_checked_predictions() public method

public it_records_even_failed_checked_predictions ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $arguments, Prophecy\Prediction\PredictionInterface $prediction, Prophecy\Call\Call $call1, Prophecy\Call\Call $call2, Prophecy\Promise\PromiseInterface $promise )
$arguments Prophecy\Argument\ArgumentsWildcard
$prediction Prophecy\Prediction\PredictionInterface
$call1 Prophecy\Call\Call
$call2 Prophecy\Call\Call
$promise Prophecy\Promise\PromiseInterface
    function it_records_even_failed_checked_predictions($objectProphecy, ArgumentsWildcard $arguments, PredictionInterface $prediction, Call $call1, Call $call2, PromiseInterface $promise)
    {
        $objectProphecy->addMethodProphecy($this)->willReturn(null);
        $prediction->check(array($call1, $call2), $objectProphecy->getWrappedObject(), $this)->willThrow(new \RuntimeException());
        $objectProphecy->findProphecyMethodCalls('getName', $arguments)->willReturn(array($call1, $call2));
        $this->will($promise);
        $this->withArguments($arguments);
        try {
            $this->callOnWrappedObject('shouldHave', array($prediction));
        } catch (\Exception $e) {
        }
        $this->getCheckedPredictions()->shouldReturn(array($prediction));
    }
MethodProphecySpec