spec\Prophecy\Prophecy\ObjectProphecySpec::it_returns_new_MethodProphecy_for_different_signatures PHP Method

it_returns_new_MethodProphecy_for_different_signatures() public method

public it_returns_new_MethodProphecy_for_different_signatures ( Prophecy\Doubler\Doubler $doubler, Prophecy\Prophecy\ProphecySubjectInterface $reflection )
$doubler Prophecy\Doubler\Doubler
$reflection Prophecy\Prophecy\ProphecySubjectInterface
    function it_returns_new_MethodProphecy_for_different_signatures(Doubler $doubler, ProphecySubjectInterface $reflection)
    {
        $doubler->double(Argument::any())->willReturn($reflection);
        $value = new ObjectProphecySpecFixtureB('ABC');
        $value2 = new ObjectProphecySpecFixtureB('CBA');
        $this->addMethodProphecy($methodProphecy1 = $this->getProphecy(1, 2, 3, $value));
        $methodProphecy2 = $this->getProphecy(1, 2, 3, $value2);
        $methodProphecy2->shouldNotBe($methodProphecy1);
    }