gearman_client_003.phpt 459 B

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