gearman_client_001.phpt 492 B

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