Skip to content

Commit 5b458a0

Browse files
authored
Update zlib_get_coding_type.phpt
1 parent 93b2d5d commit 5b458a0

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

ext/zlib/tests/zlib_get_coding_type.phpt

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,11 @@ string zlib_get_coding_type ( void );
33
--CREDITS--
44
marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br
55
--SKIPIF--
6-
<?php
7-
if (phpversion() < "5.6.0") {
8-
die('SKIP php version so lower.');
9-
}
6+
if(!extension_loaded('zlib')) die('skip, zlib not loader');
107
?>
118
--FILE--
129
<?php
13-
$compressionCoding = zlib_get_coding_type();
14-
$codingType = "get zlib type error";
15-
16-
if((!$compressionCoding) || ("gzip" == $compressionCoding) || ("deflate" == $compressionCoding)){
17-
$codingType = "okey";
18-
}
19-
20-
print($codingType);
21-
?>
22-
--CLEAN--
23-
<?php
24-
unset($compressionCoding);
25-
unset($codingType);
10+
var_dump(zlib_get_coding_type());
2611
?>
27-
--EXPECT--
28-
okey
12+
--EXPECTF--
13+
bool(%s)

0 commit comments

Comments
 (0)