xref: /PHP-8.0/ext/phar/tests/003a.phpt (revision a555cc0b)
1--TEST--
2Phar::canCompress, specific
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5--FILE--
6<?php
7var_dump(Phar::canCompress(Phar::GZ) == extension_loaded("zlib"));
8var_dump(Phar::canCompress(Phar::BZ2) == extension_loaded("bz2"));
9?>
10--EXPECT--
11bool(true)
12bool(true)
13