gearman_client_005.phpt 544 B

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