gearman_client_014.phpt 634 B

1234567891011121314151617181920212223242526
  1. --TEST--
  2. GearmanClient::wait(), gearman_client_wait()
  3. --SKIPIF--
  4. <?php if (!extension_loaded("gearman")) print "skip";
  5. require_once('skipifconnect.inc');
  6. ?>
  7. --FILE--
  8. <?php
  9. $client = new GearmanClient();
  10. $client->addServer('localhost', 4730);
  11. print "Placeholder for GearmanClient::wait function" . PHP_EOL;
  12. /*
  13. print "GearmanClient::wait (OO): " . ($client->wait() ? 'Success' : 'Failure') . PHP_EOL;
  14. */
  15. $client2 = gearman_client_create();
  16. /*
  17. print "gearman_client_wait (Procedural): " . (gearman_client_wait($client2) ? 'Success' : 'Failure') . PHP_EOL;
  18. */
  19. print "OK";
  20. ?>
  21. --EXPECT--
  22. Placeholder for GearmanClient::wait function
  23. OK