diff options
Diffstat (limited to 'ext/zlib/tests')
| -rw-r--r-- | ext/zlib/tests/001.phpt | 26 | ||||
| -rw-r--r-- | ext/zlib/tests/002.phpt | 17 | ||||
| -rw-r--r-- | ext/zlib/tests/003.phpt | 16 |
3 files changed, 0 insertions, 59 deletions
diff --git a/ext/zlib/tests/001.phpt b/ext/zlib/tests/001.phpt deleted file mode 100644 index 40b84c6f07..0000000000 --- a/ext/zlib/tests/001.phpt +++ /dev/null @@ -1,26 +0,0 @@ ---TEST-- -gzdeflate()/gzinflate() ---SKIPIF-- -<?php if (!extension_loaded("zlib")) print "skip"; ?> ---POST-- ---GET-- ---FILE-- -<?php -$original = str_repeat("hallo php",4096); -$packed=gzdeflate($original); -echo strlen($packed)." ".strlen($original)."\n"; -$unpacked=gzinflate($packed); -if (strcmp($original,$unpacked)==0) echo "Strings are equal"; - -echo "\n"; -$original = 'aaaaaaaaaaaaaaa'; -$packed=gzdeflate($original); -echo strlen($packed)." ".strlen($original)."\n"; -$unpacked=gzinflate($packed); -if (strcmp($original,$unpacked)==0) echo "Strings are equal"; -?> ---EXPECT-- -100 36864 -Strings are equal -5 15 -Strings are equal
\ No newline at end of file diff --git a/ext/zlib/tests/002.phpt b/ext/zlib/tests/002.phpt deleted file mode 100644 index 24ad827e32..0000000000 --- a/ext/zlib/tests/002.phpt +++ /dev/null @@ -1,17 +0,0 @@ ---TEST-- -gzcompress()/gzuncompress() ---SKIPIF-- -<?php if (!extension_loaded("zlib")) print "skip"; ?> ---POST-- ---GET-- ---FILE-- -<?php -$original = str_repeat("hallo php",4096); -$packed=gzcompress($original); -echo strlen($packed)." ".strlen($original)."\n"; -$unpacked=gzuncompress($packed); -if (strcmp($original,$unpacked)==0) echo "Strings are equal"; -?> ---EXPECT-- -106 36864 -Strings are equal diff --git a/ext/zlib/tests/003.phpt b/ext/zlib/tests/003.phpt deleted file mode 100644 index 254a4563ad..0000000000 --- a/ext/zlib/tests/003.phpt +++ /dev/null @@ -1,16 +0,0 @@ ---TEST-- -gzencode()/base64_encode() ---SKIPIF-- -<?php if (!extension_loaded("zlib")) print "skip"; ?> ---POST-- ---GET-- ---FILE-- -<?php -$original = str_repeat("hallo php",4096); -$packed=gzencode($original); -echo strlen($packed)." ".strlen($original)."\n"; -if (strcmp(base64_encode($packed),"H4sIAAAAAAAAA+3GoQ0AQAgEsFV+NdwJEthf/R6kVU11z9tsRERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERETu5gPlQAe9AJAAAA==")==0) echo "Strings are equal"; -?> ---EXPECT-- -118 36864 -Strings are equal |
