spec\Prophecy\Promise\CallbackPromiseSpec::it_should_execute_string_function_callback PHP Метод

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

public it_should_execute_string_function_callback ( Prophecy\Prophecy\ObjectProphecy $object, Prophecy\Prophecy\MethodProphecy $method )
$object Prophecy\Prophecy\ObjectProphecy
$method Prophecy\Prophecy\MethodProphecy
    function it_should_execute_string_function_callback(ObjectProphecy $object, MethodProphecy $method)
    {
        $firstArgumentCallback = 'spec\\Prophecy\\Promise\\functionCallbackFirstArgument';
        $this->beConstructedWith($firstArgumentCallback);
        $this->execute(array('one', 'two'), $object, $method)->shouldReturn('one');
    }