X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php80-phpiredis_1.0.1-1.el8
opt
/
alt
/
tests
/
alt-php80-phpiredis_1.0.1-1.el8
/
ðŸ“
..
📄
client_001.phpt
(283 B)
📄
client_002.phpt
(321 B)
📄
client_003.phpt
(510 B)
📄
client_004.phpt
(389 B)
📄
client_005.phpt
(378 B)
📄
client_006.phpt
(534 B)
📄
client_007.phpt
(445 B)
📄
client_008.phpt
(651 B)
📄
client_009.phpt
(425 B)
📄
client_010.phpt
(469 B)
📄
client_011.phpt
(466 B)
📄
reader_001.phpt
(257 B)
📄
reader_002.phpt
(1.07 KB)
📄
reader_003.phpt
(1.17 KB)
📄
reader_004.phpt
(540 B)
📄
reader_005.phpt
(824 B)
📄
reader_006.phpt
(1.44 KB)
📄
reader_007.phpt
(951 B)
📄
reader_008.phpt
(860 B)
📄
reader_009.phpt
(538 B)
📄
reader_010.phpt
(446 B)
📄
reader_011.phpt
(571 B)
📄
reader_012.phpt
(371 B)
📄
reader_013.phpt
(699 B)
📄
serializer_001.phpt
(240 B)
📄
serializer_002.phpt
(353 B)
📄
testsuite_configuration.inc
(118 B)
📄
testsuite_skipif.inc
(146 B)
📄
testsuite_utilities.inc
(645 B)
📄
utils_001.phpt
(682 B)
Editing: reader_008.phpt
--TEST-- [READER] Custom error handler throwing exceptions or returning objects --SKIPIF-- <?php require_once 'testsuite_skipif.inc'; --FILE-- <?php function error_handler_exception($err) { throw new Exception($err); } function error_handler_object($err) { $r = new stdClass(); $r->err = $err; return $r; } $reader = phpiredis_reader_create(); phpiredis_reader_set_error_handler($reader, 'error_handler_exception'); phpiredis_reader_feed($reader, "-ERR\r\n"); try { phpiredis_reader_get_reply($reader); var_dump(FALSE); } catch (Exception $e) { var_dump($e->getMessage() == 'ERR'); } phpiredis_reader_set_error_handler($reader, 'error_handler_object'); phpiredis_reader_feed($reader, "-ERR\r\n"); var_dump(phpiredis_reader_get_reply($reader)); --EXPECT-- bool(true) object(stdClass)#2 (1) { ["err"]=> string(3) "ERR" }
Upload File
Create Folder