spec\Prophecy\Call\CallCenterSpec::it_returns_null_if_method_prophecy_that_matches_makeCall_arguments_has_no_promise PHP Method

it_returns_null_if_method_prophecy_that_matches_makeCall_arguments_has_no_promise() public method

public it_returns_null_if_method_prophecy_that_matches_makeCall_arguments_has_no_promise ( $objectProphecy, Prophecy\Prophecy\MethodProphecy $method, Prophecy\Argument\ArgumentsWildcard $arguments )
$method Prophecy\Prophecy\MethodProphecy
$arguments Prophecy\Argument\ArgumentsWildcard
    function it_returns_null_if_method_prophecy_that_matches_makeCall_arguments_has_no_promise($objectProphecy, MethodProphecy $method, ArgumentsWildcard $arguments)
    {
        $method->getMethodName()->willReturn('getName');
        $method->getArgumentsWildcard()->willReturn($arguments);
        $method->getPromise()->willReturn(null);
        $arguments->scoreArguments(array('world', 'everything'))->willReturn(100);
        $objectProphecy->getMethodProphecies()->willReturn(array($method));
        $objectProphecy->getMethodProphecies('getName')->willReturn(array($method));
        $this->makeCall($objectProphecy, 'getName', array('world', 'everything'))->shouldReturn(null);
    }