spec\Prophecy\Prophecy\ObjectProphecySpec::it_returns_new_MethodProphecy_instance_for_arbitrary_call PHP Method

it_returns_new_MethodProphecy_instance_for_arbitrary_call() public method

public it_returns_new_MethodProphecy_instance_for_arbitrary_call ( Prophecy\Doubler\Doubler $doubler, Prophecy\Prophecy\ProphecySubjectInterface $reflection )
$doubler Prophecy\Doubler\Doubler
$reflection Prophecy\Prophecy\ProphecySubjectInterface
    function it_returns_new_MethodProphecy_instance_for_arbitrary_call(Doubler $doubler, ProphecySubjectInterface $reflection)
    {
        $doubler->double(Argument::any())->willReturn($reflection);
        $return = $this->getProphecy();
        $return->shouldBeAnInstanceOf('Prophecy\\Prophecy\\MethodProphecy');
        $return->getMethodName()->shouldReturn('getProphecy');
    }