spec\Prophecy\Prophecy\ObjectProphecySpec::it_should_reveal_arguments_and_return_values_from_callCenter PHP Method

it_should_reveal_arguments_and_return_values_from_callCenter() public method

public it_should_reveal_arguments_and_return_values_from_callCenter ( $lazyDouble, Prophecy\Call\CallCenter $callCenter, Prophecy\Prophecy\RevealerInterface $revealer )
$callCenter Prophecy\Call\CallCenter
$revealer Prophecy\Prophecy\RevealerInterface
    function it_should_reveal_arguments_and_return_values_from_callCenter($lazyDouble, CallCenter $callCenter, RevealerInterface $revealer)
    {
        $this->beConstructedWith($lazyDouble, $callCenter, $revealer);
        $revealer->reveal(array('question'))->willReturn(array('life'));
        $revealer->reveal('answer')->willReturn(42);
        $callCenter->makeCall($this->getWrappedObject(), 'setName', array('life'))->willReturn('answer');
        $this->makeProphecyMethodCall('setName', array('question'))->shouldReturn(42);
    }