X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php81-pecl-zmq_1.1.3-1.84f0720.el8/tests
opt
/
alt
/
tests
/
alt-php81-pecl-zmq_1.1.3-1.84f0720.el8
/
tests
/
ðŸ“
..
📄
001-send.phpt
(451 B)
📄
002-test-binary.phpt
(538 B)
📄
003-getpersistentid.phpt
(278 B)
📄
004-getendpoints.phpt
(724 B)
📄
005-forceconnectarg.phpt
(631 B)
📄
006-sockopt.phpt
(754 B)
📄
007-addremovepoll.phpt
(1.56 KB)
📄
008-twowaystoconstruct.phpt
(388 B)
📄
009-ispersistent.phpt
(983 B)
📄
010-pollsetinvalidargs.phpt
(419 B)
📄
011-exceptions.phpt
(422 B)
📄
012-pollsetremoveinvalid.phpt
(395 B)
📄
013-pollclearandreuse.phpt
(673 B)
📄
014-setsockoptparam.phpt
(343 B)
📄
015-callback.phpt
(712 B)
📄
016-callbackinvalidargs.phpt
(623 B)
📄
017-callbackonlyonnewsocket.phpt
(786 B)
📄
018-callbackpersistent.phpt
(521 B)
📄
020-exceptionincallback.phpt
(407 B)
📄
021-callbackwarning.phpt
(613 B)
📄
022-highwatermark.phpt
(1013 B)
📄
023-failedcallback.phpt
(1.34 KB)
📄
024-versionconstant.phpt
(222 B)
📄
025-sendrecvmulti.phpt
(666 B)
📄
026-sockettype.phpt
(522 B)
📄
027-getset.phpt
(589 B)
📄
028-xpub.phpt
(874 B)
📄
029-xrepxreqdevice.phpt
(971 B)
📄
030-xrepmanualqueue.phpt
(1.33 KB)
📄
031-lastendpoint.phpt
(506 B)
📄
032-contextopt.phpt
(515 B)
📄
033-disconnect.phpt
(716 B)
📄
034-unbind.phpt
(678 B)
📄
035-capture.phpt
(1.29 KB)
📄
036-device.phpt
(2.25 KB)
📄
037-device-deprecated.phpt
(665 B)
📄
038-cert-construct.phpt
(488 B)
📄
039-cert-equals.phpt
(475 B)
📄
040-cert-clone.phpt
(268 B)
📄
041-cert-meta.phpt
(727 B)
📄
042-cert-save.phpt
(823 B)
📄
043-cert-load.phpt
(664 B)
📄
044-auth-construct.phpt
(266 B)
📄
045-auth-allow-deny.phpt
(371 B)
📄
046-cert-apply.phpt
(307 B)
📄
047-auth-configure.phpt
(1.25 KB)
📄
048-pollsetitems.phpt
(1.15 KB)
📄
049-events.phpt
(1.12 KB)
📄
050-sharedcontext.phpt
(699 B)
📄
051-socketcount.phpt
(1.42 KB)
📄
052-pthreads.phpt
(1.83 KB)
📄
053-z85.phpt
(1.26 KB)
📄
054-curvekeypair.phpt
(631 B)
📄
055-socks-proxy.phpt
(948 B)
📄
bug_gh_156.phpt
(647 B)
📄
bug_gh_165.phpt
(421 B)
📄
bug_gh_43.phpt
(684 B)
📄
bug_gh_49.phpt
(1.22 KB)
📄
bug_gh_50.phpt
(1.2 KB)
📄
bug_gh_59.phpt
(520 B)
📄
bug_gh_59_2.phpt
(982 B)
📄
libzmq2-sockopt.phpt
(14.33 KB)
📄
libzmq3-sockopt.phpt
(8.66 KB)
📄
libzmq4-sockopt.phpt
(7.8 KB)
📄
rose.jpg
(1.54 KB)
📄
skipif-czmq2.inc
(172 B)
📄
skipif-libzmq2.inc
(154 B)
📄
skipif-libzmq3.inc
(154 B)
📄
skipif-libzmq4.inc
(154 B)
📄
skipif.inc
(82 B)
📄
zeromq_test_helper.inc
(705 B)
Editing: 053-z85.phpt
--TEST-- Test z85 --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); if (!in_array ('z85encode', get_class_methods ('zmq'))) die ('skip z85encode not found in libzmq'); ?> --FILE-- <?php function test_z85_encode_decode($input) { $encoded = zmq::z85encode($input); $decoded = zmq::z85decode($encoded); if ($input !== $decoded) { echo "E: test_z85_encode_decode: input=[$input] encoded=[$encoded] decoded=[$decoded]" . PHP_EOL; } } function test_z85_encode($input, $expect) { if ($expect !== zmq::z85encode($input)) { echo "E: test_z85_encode: input=[$input] expect=[$expect]" . PHP_EOL; } } function test_z85_decode($input, $expect) { if ($expect !== zmq::z85decode($input)) { echo "E: test_z85_decode: input=[$input] expect=[$expect]" . PHP_EOL; } } $file = file_get_contents(__DIR__ . '/rose.jpg'); test_z85_encode_decode(substr($file, 0, 128)); test_z85_encode_decode(substr($file, 128, 128)); for ($i = 4; $i <= 256; $i += 4) { $str = substr(str_shuffle(str_repeat("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", $i)), 0, $i); test_z85_encode_decode($str); } // Incorrect length test_z85_encode('1234567', null); test_z85_encode('', null); test_z85_decode('1234567', null); test_z85_decode('', null); echo "OK"; --EXPECT-- OK
Upload File
Create Folder