spec\Prophecy\Prophecy\ObjectProphecySpec::its_addMethodProphecy_throws_exception_when_method_has_no_ArgumentsWildcard PHP Method

its_addMethodProphecy_throws_exception_when_method_has_no_ArgumentsWildcard() public method

public its_addMethodProphecy_throws_exception_when_method_has_no_ArgumentsWildcard ( Prophecy\Prophecy\MethodProphecy $methodProphecy )
$methodProphecy Prophecy\Prophecy\MethodProphecy
    function its_addMethodProphecy_throws_exception_when_method_has_no_ArgumentsWildcard(MethodProphecy $methodProphecy)
    {
        $methodProphecy->getArgumentsWildcard()->willReturn(null);
        $methodProphecy->getObjectProphecy()->willReturn($this);
        $methodProphecy->getMethodName()->willReturn('getTitle');
        $this->shouldThrow('Prophecy\\Exception\\Prophecy\\MethodProphecyException')->duringAddMethodProphecy($methodProphecy);
    }