📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-03 19:57:02
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php82-pecl-gearman_2.2.1-1.el8
/
tests
📍 /opt/alt/tests/alt-php82-pecl-gearman_2.2.1-1.el8/tests
🔄 Refresh
✏️
Editing: gearman_task_001.phpt
Read Only
--TEST-- GearmanTask::functionName, gearman_task_function_name --SKIPIF-- <?php if (!extension_loaded("gearman")) print "skip"; require_once('skipifconnect.inc'); ?> --FILE-- <?php $client = new GearmanClient(); $client->addServer('localhost', 4730); $task = $client->addTask("GearmanTaskFunction", "normal"); print "GearmanTask::functionName (OO): " . $task->functionName() . PHP_EOL; $client2 = gearman_client_create(); gearman_client_add_server($client2, 'localhost', 4730); $task2 = gearman_client_add_task($client2, "GearmanTaskFunction2", "normal"); print "gearman_client_function_name (Procedural): " . gearman_task_function_name($task2) . PHP_EOL; print "OK"; ?> --EXPECT-- GearmanTask::functionName (OO): GearmanTaskFunction gearman_client_function_name (Procedural): GearmanTaskFunction2 OK
💾 Save Changes
❌ Cancel