function it_should_execute_instance_array_callback(ObjectProphecy $object, MethodProphecy $method) { $class = new ClassCallback(); $firstArgumentCallback = array($class, 'callbackMethod'); $this->beConstructedWith($firstArgumentCallback); $this->execute(array('one', 'two'), $object, $method)->shouldReturn('one'); }