xref: /PHP-7.1/ext/phar/tests/003.phpt (revision 16b4d8e0)
1--TEST--
2Phar::canCompress
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
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