X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php82-pecl-amqp_2.1.2-1.el8/tests
opt
/
alt
/
tests
/
alt-php82-pecl-amqp_2.1.2-1.el8
/
tests
/
ðŸ“
..
📄
_test_helpers.php.inc
(2.19 KB)
📄
amqp_version.phpt
(485 B)
📄
amqpbasicproperties.phpt
(3.59 KB)
📄
amqpbasicproperties_nullability.phpt
(1.79 KB)
📄
amqpconnection_construct_ini_read_timeout.phpt
(443 B)
📄
amqpconnection_construct_ini_timeout.phpt
(558 B)
📄
amqpconnection_construct_ini_timeout_and_read_timeout.phpt
(743 B)
📄
amqpconnection_construct_ini_timeout_default.phpt
(477 B)
📄
amqpconnection_construct_params_by_value.phpt
(1.02 KB)
📄
amqpconnection_construct_with_connection_name.phpt
(607 B)
📄
amqpconnection_construct_with_rpc_timeout.phpt
(338 B)
📄
amqpconnection_construct_with_timeout.phpt
(445 B)
📄
amqpconnection_construct_with_timeout_and_read_timeout.phpt
(500 B)
📄
amqpconnection_construct_with_verify_false.phpt
(318 B)
📄
amqpconnection_construct_with_write_timeout.phpt
(342 B)
📄
amqpconnection_nullable_setters.phpt
(955 B)
📄
amqpconnection_setConnectionName.phpt
(564 B)
📄
amqpconnection_setHost.phpt
(313 B)
📄
amqpconnection_setLogin.phpt
(447 B)
📄
amqpconnection_setPassword.phpt
(459 B)
📄
amqpconnection_setPort_int.phpt
(449 B)
📄
amqpconnection_setPort_out_of_range.phpt
(496 B)
📄
amqpconnection_setPort_string.phpt
(457 B)
📄
amqpconnection_setReadTimeout_float.phpt
(480 B)
📄
amqpconnection_setReadTimeout_int.phpt
(397 B)
📄
amqpconnection_setReadTimeout_out_of_range.phpt
(414 B)
📄
amqpconnection_setReadTimeout_string.phpt
(485 B)
📄
amqpconnection_setRpcTimeout_float.phpt
(583 B)
📄
amqpconnection_setRpcTimeout_int.phpt
(442 B)
📄
amqpconnection_setRpcTimeout_out_of_range.phpt
(545 B)
📄
amqpconnection_setRpcTimeout_string.phpt
(598 B)
📄
amqpconnection_setSaslMethod.phpt
(629 B)
📄
amqpconnection_setSaslMethod_invalid.phpt
(573 B)
📄
amqpconnection_setTimeout_deprecated.phpt
(549 B)
📄
amqpconnection_setTimeout_float.phpt
(946 B)
📄
amqpconnection_setTimeout_int.phpt
(561 B)
📄
amqpconnection_setTimeout_out_of_range.phpt
(565 B)
📄
amqpconnection_setTimeout_string.phpt
(951 B)
📄
amqpconnection_setVhost.phpt
(443 B)
📄
amqpconnection_setWriteTimeout_float.phpt
(485 B)
📄
amqpconnection_setWriteTimeout_int.phpt
(400 B)
📄
amqpconnection_setWriteTimeout_out_of_range.phpt
(551 B)
📄
amqpconnection_setWriteTimeout_string.phpt
(491 B)
📄
amqpconnection_validation.phpt
(5.01 KB)
📄
amqpdecimal.phpt
(1.28 KB)
📄
amqpenvelope_construct.phpt
(1.29 KB)
📄
amqpexchange_declare_with_stalled_reference.phpt
(856 B)
📄
amqpqueue_declare_with_stalled_reference.phpt
(838 B)
📄
amqpqueue_purge_basic.phpt
(142 B)
📄
amqptimestamp.phpt
(1.08 KB)
📄
bug_62354.phpt
(595 B)
📄
ini_validation_failure.phpt
(4.4 KB)
📄
testtest.phpt
(1.77 KB)
Editing: testtest.phpt
--TEST-- Test the tests --FILE-- <?php foreach (glob(__DIR__ . '/*.phpt') as $test) { if ($test === __FILE__ . 't') { continue; } $content = file_get_contents($test); if (!$content) { printf("%s could not be read\n", basename($test)); continue; } if (strpos($content, "\n--SKIPIF--\n") == false) { printf("%s does not contain SKIPIF section\n", basename($test)); continue; } if (!preg_match('/--FILE--(?P<testCode>.*?)--[A-Z]+--/s', $content, $matches)) { printf("%s TEST section cannot be parsed\n", basename($test)); continue; } ['testCode' => $testCode] = $matches; if (!preg_match('/--SKIPIF--(?P<skipCode>.*?)--[A-Z]+--/s', $content, $matches)) { printf("%s SKIPIF section cannot be parsed\n", basename($test)); continue; } ['skipCode' => $skipCode] = $matches; if (!preg_match('/if\s*\(!extension_loaded\("amqp"\)\)\s*\{?\s*print "skip AMQP extension is not loaded";/', $skipCode)) { printf("%s --SKIP-- does not check for the extension being present\n", basename($test)); continue; } $hostVars = ['PHP_AMQP_HOST', 'PHP_AMQP_SSL_HOST']; foreach ($hostVars as $hostVar) { if (strpos($testCode, $hostVar) !== false && !preg_match('/!getenv\(["\']' . $hostVar . '/', $skipCode)) { printf("%s --TEST-- contains reference to %s but --SKIP-- does not check for it\n", basename($test), $hostVar); continue 2; } if (strpos($testCode, $hostVar) === false && strpos($skipCode, $hostVar) !== false) { printf("%s --TEST-- contains no reference to %s but --SKIP-- checks for reference\n", basename($test), $hostVar); continue 2; } } } ?> ==DONE== --EXPECT-- ==DONE==
Upload File
Create Folder