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