projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- add flush() to HttpDeflateStream and HttpInflateStream
[m6w6/ext-http]
/
tests
/
encoding_objects_001.phpt
diff --git
a/tests/encoding_objects_001.phpt
b/tests/encoding_objects_001.phpt
index d9cf992b54b3c28835a01fb3baf507ffbacbf6a0..f2fc6e29588e7b792919111808346fd5078b35a4 100644
(file)
--- a/
tests/encoding_objects_001.phpt
+++ b/
tests/encoding_objects_001.phpt
@@
-11,14
+11,14
@@
skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib");
echo "-TEST\n";
$d = new HttpDeflateStream;
$i = new HttpInflateStream;
echo "-TEST\n";
$d = new HttpDeflateStream;
$i = new HttpInflateStream;
-echo $i->update($d->update("Hi "));
-echo $i->update($d->update("there!\n"));
-echo $i->update($d->finish());
-echo $i->finish();
+echo $i->flush($d->flush("Hi "));
+echo $i->finish($d->finish("there!\n"));
+echo $i->finish($d->finish("Yo...\n"));
echo "Done\n";
?>
--EXPECTF--
%sTEST
Hi there!
echo "Done\n";
?>
--EXPECTF--
%sTEST
Hi there!
+Yo...
Done
Done