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

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

public it_should_execute_closure_callback ( Prophecy\Prophecy\ObjectProphecy $object, Prophecy\Prophecy\MethodProphecy $method )
$object Prophecy\Prophecy\ObjectProphecy
$method Prophecy\Prophecy\MethodProphecy
    function it_should_execute_closure_callback(ObjectProphecy $object, MethodProphecy $method)
    {
        $firstArgumentCallback = function ($args) {
            return $args[0];
        };
        $this->beConstructedWith($firstArgumentCallback);
        $this->execute(array('one', 'two'), $object, $method)->shouldReturn('one');
    }