gearman_worker_002.phpt 474 B

12345678910111213141516171819
  1. --TEST--
  2. gearman_worker_return_code()
  3. --SKIPIF--
  4. <?php if (!extension_loaded("gearman")) print "skip"; ?>
  5. --FILE--
  6. <?php
  7. $worker = new GearmanWorker();
  8. print "GearmanWorker::returnCode (OO): " . $worker->returnCode() . PHP_EOL;
  9. $worker2 = gearman_worker_create();
  10. print "gearman_worker_return_code (Procedural): " . gearman_worker_return_code($worker2) . PHP_EOL;
  11. print "OK";
  12. ?>
  13. --EXPECT--
  14. GearmanWorker::returnCode (OO): 0
  15. gearman_worker_return_code (Procedural): 0
  16. OK