diff options
author | marcosptf <marcosptf@yahoo.com.br> | 2015-08-20 08:34:29 -0300 |
---|---|---|
committer | Christoph M. Becker <cmb@php.net> | 2015-08-23 17:55:23 +0200 |
commit | d536ecac5ca34f351f219b880c7983b682c99ec0 (patch) | |
tree | da923f5870bac6d9dac10873187a0297bbbe6bda | |
parent | c68fa93de573df3ade1eedc4b401850df0ef9aac (diff) | |
download | php-git-d536ecac5ca34f351f219b880c7983b682c99ec0.tar.gz |
added test for gzgetss()
-rw-r--r-- | ext/zlib/tests/gzgetss.gz | bin | 0 -> 183 bytes | |||
-rw-r--r-- | ext/zlib/tests/gzgetss.phpt | 22 | ||||
-rw-r--r-- | ext/zlib/tests/gzgetss.test | 5 |
3 files changed, 27 insertions, 0 deletions
diff --git a/ext/zlib/tests/gzgetss.gz b/ext/zlib/tests/gzgetss.gz Binary files differnew file mode 100644 index 0000000000..f6c9f5cd10 --- /dev/null +++ b/ext/zlib/tests/gzgetss.gz diff --git a/ext/zlib/tests/gzgetss.phpt b/ext/zlib/tests/gzgetss.phpt new file mode 100644 index 0000000000..b0bdcb9c86 --- /dev/null +++ b/ext/zlib/tests/gzgetss.phpt @@ -0,0 +1,22 @@ +--TEST-- +gzgetss — Get line from gz-file pointer and strip HTML tags - function +--CREDITS-- +marcosptf - <marcosptf@yahoo.com.br> +--SKIPIF-- +<?php + +<?php +if(!extension_loaded("zlib")){die("skip - ZLIB extension not loaded");} +?> +--FILE-- +<?php +$handle = gzopen(__DIR__ . '/gzgetss.gz', 'r'); + +while (!gzeof($handle)){ + $buffer = gzgetss($handle, 4096, "<code>"); + print($buffer); +} +gzclose($handle); +?> +--EXPECT-- +<code>stringgzgetss(resource $zp, int $length [, string $allowable_tags ]);<code/>
\ No newline at end of file diff --git a/ext/zlib/tests/gzgetss.test b/ext/zlib/tests/gzgetss.test new file mode 100644 index 0000000000..37df4858df --- /dev/null +++ b/ext/zlib/tests/gzgetss.test @@ -0,0 +1,5 @@ +<div> + <p class="para rdfs-comment"> + <code><span class="type">string</span><span class="methodname"><strong>gzgetss</strong></span>(resource $zp, int $length [, string $allowable_tags ]);<code/> + </p> +</div>
\ No newline at end of file |