spec\Prophecy\Prophecy\ObjectProphecySpec::it_returns_same_MethodProphecy_for_same_registered_signature PHP Method

it_returns_same_MethodProphecy_for_same_registered_signature() public method

public it_returns_same_MethodProphecy_for_same_registered_signature ( Prophecy\Doubler\Doubler $doubler, Prophecy\Prophecy\ProphecySubjectInterface $reflection )
$doubler Prophecy\Doubler\Doubler
$reflection Prophecy\Prophecy\ProphecySubjectInterface
    function it_returns_same_MethodProphecy_for_same_registered_signature(Doubler $doubler, ProphecySubjectInterface $reflection)
    {
        $doubler->double(Argument::any())->willReturn($reflection);
        $this->addMethodProphecy($methodProphecy1 = $this->getProphecy(1, 2, 3));
        $methodProphecy2 = $this->getProphecy(1, 2, 3);
        $methodProphecy2->shouldBe($methodProphecy1);
    }