gearman_client_009.phpt 477 B

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