X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php84-pecl-brotli_0.18.3-2.el8/tests
opt
/
alt
/
tests
/
alt-php84-pecl-brotli_0.18.3-2.el8
/
tests
/
??
..
??
alias.phpt
(538 B)
??
apcu_serializer.phpt
(1.6 KB)
??
compatibility.phpt
(7.07 KB)
??
compress_add.phpt
(1023 B)
??
compress_args.phpt
(1.34 KB)
??
data.dict
(3.46 KB)
??
data.inc
(3.49 KB)
??
dictionary_args.phpt
(2.05 KB)
??
dictionary_basic.phpt
(1.35 KB)
??
dictionary_incremental.phpt
(1.4 KB)
??
dictionary_named_args.phpt
(3.27 KB)
??
dictionary_named_args_incremental.phpt
(1.21 KB)
??
dictionary_ob.phpt
(560 B)
??
dictionary_streams.phpt
(1 KB)
??
files
??
files.inc
(770 B)
??
incremental_compress_add_alias.phpt
(754 B)
??
incremental_compress_add_args.phpt
(2.18 KB)
??
incremental_compress_add_basic.phpt
(736 B)
??
incremental_uncompress_add_alias.phpt
(895 B)
??
incremental_uncompress_add_basic.phpt
(876 B)
??
info.phpt
(247 B)
??
named_args.phpt
(2.7 KB)
??
named_args_incremental.phpt
(2.61 KB)
??
ob_001.phpt
(391 B)
??
ob_002.phpt
(255 B)
??
ob_003.phpt
(438 B)
??
ob_004.phpt
(420 B)
??
ob_005.phpt
(397 B)
??
ob_006.phpt
(244 B)
??
ob_007.phpt
(351 B)
??
ob_008.phpt
(384 B)
??
ob_009.phpt
(614 B)
??
ob_010.phpt
(277 B)
??
ob_011.phpt
(445 B)
??
ob_dcb_001.phpt
(639 B)
??
ob_dcb_002.phpt
(564 B)
??
ob_dcb_003.phpt
(626 B)
??
ob_dcb_004.phpt
(613 B)
??
ob_dcb_005.phpt
(626 B)
??
roundtrip.phpt
(2.28 KB)
??
streams_001.phpt
(978 B)
??
streams_002.phpt
(757 B)
??
streams_003.phpt
(953 B)
??
streams_004.phpt
(687 B)
??
streams_005.phpt
(390 B)
??
streams_006.phpt
(818 B)
Editing: dictionary_named_args.phpt
--TEST-- use dictionary: named arguments --SKIPIF-- <?php if (PHP_VERSION_ID < 80000) die("skip requires PHP 8.0+"); if (BROTLI_DICTIONARY_SUPPORT === false) die('skip dictionary not supported'); ?> --FILE-- <?php include(dirname(__FILE__) . '/data.inc'); $dictionary = file_get_contents(dirname(__FILE__) . '/data.dict'); $level = BROTLI_COMPRESS_LEVEL_MAX; $mode = BROTLI_TEXT; echo "** brotli_compress(dict:) **\n"; try { var_dump(gettype(brotli_compress(dict: $dictionary))); } catch (Error $e) { echo $e->getMessage(), PHP_EOL; } echo "** brotli_compress(data:, dict:) **\n"; try { var_dump(gettype(brotli_compress(data: $data, dict: $dictionary))); var_dump(brotli_uncompress(brotli_compress(data: $data, dict: $dictionary), dict: $dictionary) === $data); } catch (Error $e) { echo $e->getMessage(), PHP_EOL; } echo "** brotli_compress(level:, dict:) **\n"; try { var_dump(gettype(brotli_compress(level: $level, dict: $dictionary))); } catch (Error $e) { echo $e->getMessage(), PHP_EOL; } echo "** brotli_compress(mode:, dict:) **\n"; try { var_dump(gettype(brotli_compress(mode: $mode, dict: $dictionary))); } catch (Error $e) { echo $e->getMessage(), PHP_EOL; } echo "** brotli_compress(data:, level:, dict:) **\n"; try { var_dump(gettype(brotli_compress(data: $data, level: $level, dict: $dictionary))); var_dump(brotli_uncompress(brotli_compress(data: $data, level: $level, dict: $dictionary), dict: $dictionary) === $data); } catch (Error $e) { echo $e->getMessage(), PHP_EOL; } echo "** brotli_compress(data:, mode:, dict:) **\n"; try { var_dump(gettype(brotli_compress(data: $data, mode: $mode, dict: $dictionary))); var_dump(brotli_uncompress(brotli_compress(data: $data, mode: $mode, dict: $dictionary), dict: $dictionary) === $data); } catch (Error $e) { echo $e->getMessage(), PHP_EOL; } echo "** brotli_compress(level:, mode:, dict:) **\n"; try { var_dump(gettype(brotli_compress(level: $level, mode: $mode, dict: $dictionary))); } catch (Error $e) { echo $e->getMessage(), PHP_EOL; } $compressed = brotli_compress(data: $data, dict: $dictionary); echo "** brotli_uncompress(dict:): false **\n"; try { var_dump(gettype(brotli_uncompress(dict: $dictionary))); } catch (Error $e) { echo $e->getMessage(), PHP_EOL; } echo "** brotli_uncompress(data:, dict:) **\n"; try { var_dump(gettype(brotli_uncompress(data: $compressed, dict: $dictionary))); var_dump(brotli_uncompress(data: $compressed, dict: $dictionary) === $data); } catch (Error $e) { echo $e->getMessage(), PHP_EOL; } ?> ===DONE=== --EXPECTF-- ** brotli_compress(dict:) ** brotli_compress(): Argument #1 ($data) not passed ** brotli_compress(data:, dict:) ** string(6) "string" bool(true) ** brotli_compress(level:, dict:) ** brotli_compress(): Argument #1 ($data) not passed ** brotli_compress(mode:, dict:) ** brotli_compress(): Argument #1 ($data) not passed ** brotli_compress(data:, level:, dict:) ** string(6) "string" bool(true) ** brotli_compress(data:, mode:, dict:) ** string(6) "string" bool(true) ** brotli_compress(level:, mode:, dict:) ** brotli_compress(): Argument #1 ($data) not passed ** brotli_uncompress(dict:): false ** brotli_uncompress(): Argument #1 ($data) not passed ** brotli_uncompress(data:, dict:) ** string(6) "string" bool(true) ===DONE===
Upload File
Create Folder