gearman_worker_003.phpt 435 B

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