spec\Prophecy\Prediction\CallPredictionSpec::it_throws_NoCallsException_if_no_calls_found PHP Метод

it_throws_NoCallsException_if_no_calls_found() публичный Метод

public it_throws_NoCallsException_if_no_calls_found ( Prophecy\Prophecy\ObjectProphecy $object, Prophecy\Prophecy\MethodProphecy $method, Prophecy\Argument\ArgumentsWildcard $arguments )
$object Prophecy\Prophecy\ObjectProphecy
$method Prophecy\Prophecy\MethodProphecy
$arguments Prophecy\Argument\ArgumentsWildcard
    function it_throws_NoCallsException_if_no_calls_found(ObjectProphecy $object, MethodProphecy $method, ArgumentsWildcard $arguments)
    {
        $method->getObjectProphecy()->willReturn($object);
        $method->getMethodName()->willReturn('getName');
        $method->getArgumentsWildcard()->willReturn($arguments);
        $arguments->__toString()->willReturn('123');
        $object->reveal()->willReturn(new \stdClass());
        $object->findProphecyMethodCalls('getName', Argument::any())->willReturn(array());
        $this->shouldThrow('Prophecy\\Exception\\Prediction\\NoCallsException')->duringCheck(array(), $object, $method);
    }