X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php84-pecl-gearman_2.1.4-1.el8/tests
opt
/
alt
/
tests
/
alt-php84-pecl-gearman_2.1.4-1.el8
/
tests
/
ðŸ“
..
📄
connect.inc
(104 B)
📄
gearman_001.phpt
(205 B)
📄
gearman_002.phpt
(277 B)
📄
gearman_client_001.phpt
(492 B)
📄
gearman_client_002.phpt
(503 B)
📄
gearman_client_003.phpt
(459 B)
📄
gearman_client_004.phpt
(487 B)
📄
gearman_client_005.phpt
(544 B)
📄
gearman_client_006.phpt
(1.13 KB)
📄
gearman_client_007.phpt
(1.17 KB)
📄
gearman_client_008.phpt
(1.15 KB)
📄
gearman_client_009.phpt
(477 B)
📄
gearman_client_010.phpt
(1.01 KB)
📄
gearman_client_011.phpt
(957 B)
📄
gearman_client_012.phpt
(1.05 KB)
📄
gearman_client_013.phpt
(652 B)
📄
gearman_client_014.phpt
(634 B)
📄
gearman_client_015.phpt
(929 B)
📄
gearman_client_016.phpt
(1.58 KB)
📄
gearman_client_017.phpt
(1.82 KB)
📄
gearman_client_018.phpt
(2.2 KB)
📄
gearman_client_019.phpt
(673 B)
📄
gearman_client_020.phpt
(2.22 KB)
📄
gearman_client_021.phpt
(2.56 KB)
📄
gearman_client_022.phpt
(306 B)
📄
gearman_client_integration_test_001.phpt
(2.03 KB)
📄
gearman_client_integration_test_002.phpt
(1.3 KB)
📄
gearman_job_001.phpt
(265 B)
📄
gearman_job_002.phpt
(1.33 KB)
📄
gearman_job_003.phpt
(294 B)
📄
gearman_job_integration_test_001.phpt
(1.4 KB)
📄
gearman_job_integration_test_002.phpt
(1.41 KB)
📄
gearman_job_integration_test_003.phpt
(1.39 KB)
📄
gearman_job_integration_test_004.phpt
(1.42 KB)
📄
gearman_job_integration_test_005.phpt
(1.43 KB)
📄
gearman_job_integration_test_006.phpt
(1.38 KB)
📄
gearman_job_integration_test_007.phpt
(1.4 KB)
📄
gearman_job_integration_test_008.phpt
(1.43 KB)
📄
gearman_job_integration_test_009.phpt
(1.41 KB)
📄
gearman_job_integration_test_010.phpt
(1.52 KB)
📄
gearman_task_001.phpt
(806 B)
📄
gearman_task_002.phpt
(931 B)
📄
gearman_task_003.phpt
(1.09 KB)
📄
gearman_task_004.phpt
(2.09 KB)
📄
gearman_task_005.phpt
(1.3 KB)
📄
gearman_task_006.phpt
(301 B)
📄
gearman_tasks_integration_test_001.phpt
(1.94 KB)
📄
gearman_tasks_integration_test_002.phpt
(2.31 KB)
📄
gearman_worker_001.phpt
(474 B)
📄
gearman_worker_002.phpt
(474 B)
📄
gearman_worker_003.phpt
(435 B)
📄
gearman_worker_004.phpt
(444 B)
📄
gearman_worker_005.phpt
(453 B)
📄
gearman_worker_006.phpt
(850 B)
📄
gearman_worker_007.phpt
(848 B)
📄
gearman_worker_008.phpt
(1.2 KB)
📄
gearman_worker_009.phpt
(547 B)
📄
gearman_worker_010.phpt
(1.02 KB)
📄
gearman_worker_011.phpt
(379 B)
📄
gearman_worker_012.phpt
(1.96 KB)
📄
gearman_worker_013.phpt
(826 B)
📄
gearman_worker_014.phpt
(1.32 KB)
📄
gearman_worker_015.phpt
(704 B)
📄
gearman_worker_016.phpt
(1.8 KB)
📄
gearman_worker_017.phpt
(306 B)
📄
gearman_worker_integration_test_001.phpt
(2.14 KB)
📄
skipif.inc
(174 B)
📄
skipifconnect.inc
(396 B)
📄
skipifversion.inc
(248 B)
Editing: gearman_client_021.phpt
--TEST-- GearmanClient::enableExceptionHandler(),gearman_client_enable_exception_handler() --SKIPIF-- <?php if (!extension_loaded("gearman")) print "skip"; require_once('skipifconnect.inc'); ?> --FILE-- <?php // Test 1: GearmanClient::addServers, Exception callback disabled. Exceptions // should be skipped until we call enableExceptionHandler. Port 4731 is not // being used as the port for GearmanD, so it will fail $client = new GearmanClient(); $client->addServers('localhost:4731,localhost', false); // Enabling the exception handler, which will attempt to connect to // the server and in doing so throw an exception since we can't // connect to a server that doesn't exist try { $client->enableExceptionHandler(); } catch (Exception $e) { print "Exception 1 caught: " . $e->getMessage() . PHP_EOL; } // Test 2: GearmanClient::addServers, Exception callback enabled (by default). // Here, we don't give the second param, so the exception handler is enabled // upon calling addServers instead of later in enableExceptionHandler $client2 = new GearmanClient(); try { $client2->addServers('localhost:4731,localhost'); } catch (Exception $e) { print "Exception 2 caught: " . $e->getMessage() . PHP_EOL; } // Test 3: GearmanClient::addServers, Also, when we explicitly enable in addServers $client3 = new GearmanClient(); try { $client3->addServers('localhost:4731,localhost', true); } catch (Exception $e) { print "Exception 3 caught: " . $e->getMessage() . PHP_EOL; } // Now, do the same as above but with addServer (singular) // Test 4: GearmanClient::addServer, Exception callback disabled $client4 = new GearmanClient(); $client4->addServer('localhost', 4731, false); try { $client4->enableExceptionHandler(); } catch (Exception $e) { print "Exception 4 caught: " . $e->getMessage() . PHP_EOL; } // Test 5: GearmanClient::addServer, default $client5 = new GearmanClient(); try { $client5->addServer('localhost', 4731); } catch (Exception $e) { print "Exception 5 caught: " . $e->getMessage() . PHP_EOL; } // Test 6: GearmanClient::addServer, explicitly set enableExceptionHandler $client6 = new GearmanClient(); try { $client6->addServer('localhost', 4731, true); } catch (Exception $e) { print "Exception 6 caught: " . $e->getMessage() . PHP_EOL; } print "OK"; ?> --EXPECTF-- Exception 1 caught: Failed to set exception option Exception 2 caught: Failed to set exception option Exception 3 caught: Failed to set exception option Exception 4 caught: Failed to set exception option Exception 5 caught: Failed to set exception option Exception 6 caught: Failed to set exception option OK
Upload File
Create Folder