xref: /PHP-8.1/ext/phar/tests/003.phpt (revision 74859783)
1--TEST--
2Phar::canCompress
3--EXTENSIONS--
4phar
5--FILE--
6<?php
7/* check this works and actually returns the boolean value */
8var_dump(Phar::canCompress() == (
9    extension_loaded("zlib") || extension_loaded("bz2")
10    ));
11?>
12--EXPECT--
13bool(true)
14