xref: /PHP-8.0/ext/phar/tests/003.phpt (revision f8d79582)
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