diff options
author | Fyorl <gaelreth@gmail.com> | 2012-08-10 12:10:37 +0100 |
---|---|---|
committer | Fyorl <gaelreth@gmail.com> | 2012-08-28 09:33:40 +0100 |
commit | 83a532607761fa7c6de70bd114fe8d6bf5ba2983 (patch) | |
tree | 3b10ee8f406a89fd02d58b81cb95b97eecbd5200 /tests/compress | |
parent | 570502e4a3a70d63a235ef634560477da8782865 (diff) | |
download | forums-83a532607761fa7c6de70bd114fe8d6bf5ba2983.tar forums-83a532607761fa7c6de70bd114fe8d6bf5ba2983.tar.gz forums-83a532607761fa7c6de70bd114fe8d6bf5ba2983.tar.bz2 forums-83a532607761fa7c6de70bd114fe8d6bf5ba2983.tar.xz forums-83a532607761fa7c6de70bd114fe8d6bf5ba2983.zip |
[ticket/11045] Explicitely check for zlib and bz2
PHPBB3-11045
Diffstat (limited to 'tests/compress')
-rw-r--r-- | tests/compress/compress_test.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/compress/compress_test.php b/tests/compress/compress_test.php index 826abbc0c8..c0e4e914e1 100644 --- a/tests/compress/compress_test.php +++ b/tests/compress/compress_test.php @@ -38,9 +38,8 @@ class phpbb_compress_test extends phpbb_test_case $phpbb_root_path = ''; $this->path = __DIR__ . '/fixtures/'; - $compress = new compress(); - if (sizeof($compress->methods()) < 4) + if (!@extension_loaded('zlib') || !@extension_loaded('bz2')) { $this->markTestSkipped('PHP needs to be compiled with --with-zlib and --with-bz2 in order to run these tests'); } |