--TEST-- gearman_worker_ping() --SKIPIF-- --FILE-- addServer($host, $port); echo "GearmanWorker::server() (OO): ".($worker->ping($json_workload) ? "Success" : "Failure").PHP_EOL; $worker2 = gearman_worker_create(); gearman_worker_add_server($worker, $host, $port); echo "gearman_worker_work() (Procedural): ".($worker->ping($json_workload) ? "Success" : "Failure").PHP_EOL; print "OK"; ?> --EXPECT-- GearmanWorker::server() (OO): Success gearman_worker_work() (Procedural): Success OK