spec\Prophecy\Prophecy\ObjectProphecySpec::its_addMethodProphecy_handles_prophecies_with_different_arguments PHP Method

its_addMethodProphecy_handles_prophecies_with_different_arguments() public method

public its_addMethodProphecy_handles_prophecies_with_different_arguments ( Prophecy\Prophecy\MethodProphecy $methodProphecy1, Prophecy\Prophecy\MethodProphecy $methodProphecy2, Prophecy\Argument\ArgumentsWildcard $argumentsWildcard1, Prophecy\Argument\ArgumentsWildcard $argumentsWildcard2 )
$methodProphecy1 Prophecy\Prophecy\MethodProphecy
$methodProphecy2 Prophecy\Prophecy\MethodProphecy
$argumentsWildcard1 Prophecy\Argument\ArgumentsWildcard
$argumentsWildcard2 Prophecy\Argument\ArgumentsWildcard
    function its_addMethodProphecy_handles_prophecies_with_different_arguments(MethodProphecy $methodProphecy1, MethodProphecy $methodProphecy2, ArgumentsWildcard $argumentsWildcard1, ArgumentsWildcard $argumentsWildcard2)
    {
        $methodProphecy1->getArgumentsWildcard()->willReturn($argumentsWildcard1);
        $methodProphecy1->getMethodName()->willReturn('getUsername');
        $methodProphecy2->getArgumentsWildcard()->willReturn($argumentsWildcard2);
        $methodProphecy2->getMethodName()->willReturn('getUsername');
        $this->addMethodProphecy($methodProphecy1);
        $this->addMethodProphecy($methodProphecy2);
        $this->getMethodProphecies()->shouldReturn(array('getUsername' => array($methodProphecy1, $methodProphecy2)));
    }