spec\Prophecy\Promise\ReturnArgumentPromiseSpec::it_should_return_first_argument_if_provided PHP Метод

it_should_return_first_argument_if_provided() публичный Метод

public it_should_return_first_argument_if_provided ( Prophecy\Prophecy\ObjectProphecy $object, Prophecy\Prophecy\MethodProphecy $method )
$object Prophecy\Prophecy\ObjectProphecy
$method Prophecy\Prophecy\MethodProphecy
    function it_should_return_first_argument_if_provided(ObjectProphecy $object, MethodProphecy $method)
    {
        $this->execute(array('one', 'two'), $object, $method)->shouldReturn('one');
    }