From: Greg Beaver Date: Sun, 25 Nov 2007 04:43:01 +0000 (+0000) Subject: add new tests for Phar::getSupportedCompression X-Git-Tag: RELEASE_2_0_0a1~1285 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a4d447b283186e1d305efda90f0f6fbf29e589c;p=php add new tests for Phar::getSupportedCompression --- diff --git a/ext/phar/tests/phar_get_supportedcomp1.phpt b/ext/phar/tests/phar_get_supportedcomp1.phpt new file mode 100644 index 0000000000..e80e038ba7 --- /dev/null +++ b/ext/phar/tests/phar_get_supportedcomp1.phpt @@ -0,0 +1,22 @@ +--TEST-- +Phar::getSupportedCompression() (bz2 and zlib) +--SKIPIF-- + + + + +--INI-- +phar.require_hash=0 +--FILE-- + +===DONE=== +--EXPECT-- +array(2) { + [0]=> + string(2) "GZ" + [1]=> + string(5) "BZIP2" +} +===DONE=== \ No newline at end of file diff --git a/ext/phar/tests/phar_get_supportedcomp2.phpt b/ext/phar/tests/phar_get_supportedcomp2.phpt new file mode 100644 index 0000000000..9148c13c94 --- /dev/null +++ b/ext/phar/tests/phar_get_supportedcomp2.phpt @@ -0,0 +1,20 @@ +--TEST-- +Phar::getSupportedCompression() (bz2) +--SKIPIF-- + + + + +--INI-- +phar.require_hash=0 +--FILE-- + +===DONE=== +--EXPECT-- +array(2) { + [0]=> + string(5) "BZIP2" +} +===DONE=== \ No newline at end of file diff --git a/ext/phar/tests/phar_get_supportedcomp3.phpt b/ext/phar/tests/phar_get_supportedcomp3.phpt new file mode 100644 index 0000000000..53f0693b11 --- /dev/null +++ b/ext/phar/tests/phar_get_supportedcomp3.phpt @@ -0,0 +1,20 @@ +--TEST-- +Phar::getSupportedCompression() (zlib) +--SKIPIF-- + + + + +--INI-- +phar.require_hash=0 +--FILE-- + +===DONE=== +--EXPECT-- +array(2) { + [0]=> + string(5) "GZ" +} +===DONE=== \ No newline at end of file diff --git a/ext/phar/tests/phar_get_supportedcomp4.phpt b/ext/phar/tests/phar_get_supportedcomp4.phpt new file mode 100644 index 0000000000..adaa95de85 --- /dev/null +++ b/ext/phar/tests/phar_get_supportedcomp4.phpt @@ -0,0 +1,16 @@ +--TEST-- +Phar::getSupportedCompression() (none) +--SKIPIF-- + + + + +--FILE-- + +===DONE=== +--EXPECT-- +array(0) { +} +===DONE=== \ No newline at end of file