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'); }