📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-03 06:57:44
📂
/ (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_002.phpt
Read Only
--TEST-- GearmanTask::unique, gearman_task_unique --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::unique (OO): " . (preg_match('/^(.*)-(.*)-(.*)-(.*)-(.*)$/', $task->unique()) ? 'String matches' : 'String does not match') . PHP_EOL; $client2 = gearman_client_create(); gearman_client_add_server($client2, 'localhost', 4730); $task2 = gearman_client_add_task($client2, "GearmanTaskFunction2", "normal"); print "gearman_client_unique (Procedural): " . (preg_match('/^(.*)-(.*)-(.*)-(.*)-(.*)$/', gearman_task_unique($task)) ? 'String matches' : 'String does not match') . PHP_EOL; print "OK"; ?> --EXPECT-- GearmanTask::unique (OO): String matches gearman_client_unique (Procedural): String matches OK
💾 Save Changes
❌ Cancel