gearman_worker_011.phpt 379 B

123456789101112131415161718192021222324
  1. --TEST--
  2. gearman_worker_wait()
  3. --SKIPIF--
  4. <?php if (!extension_loaded("gearman")) print "skip";
  5. require_once('skipifconnect.inc');
  6. ?>
  7. --FILE--
  8. <?php
  9. $host = 'localhost';
  10. $port = 4730;
  11. $worker = new GearmanWorker();
  12. $worker->addServer($host, $port);
  13. $worker->setTimeout(1);
  14. /*
  15. Still need to figure out how to test wait here...
  16. $worker->wait();
  17. */
  18. print "OK";
  19. ?>
  20. --EXPECT--
  21. OK