function CallbackPromiseSpec::it_should_execute_static_array_callback in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/spec/Prophecy/Promise/CallbackPromiseSpec.php \spec\Prophecy\Promise\CallbackPromiseSpec::it_should_execute_static_array_callback()
Parameters
\Prophecy\Prophecy\ObjectProphecy $object:
\Prophecy\Prophecy\MethodProphecy $method:
File
- vendor/phpspec/ prophecy/ spec/ Prophecy/ Promise/ CallbackPromiseSpec.php, line 38 
Class
Namespace
spec\Prophecy\PromiseCode
function it_should_execute_static_array_callback($object, $method) {
  $firstArgumentCallback = array(
    'spec\\Prophecy\\Promise\\ClassCallback',
    'staticCallbackMethod',
  );
  $this
    ->beConstructedWith($firstArgumentCallback);
  $this
    ->execute(array(
    'one',
    'two',
  ), $object, $method)
    ->shouldReturn('one');
}