- add flush() to HttpDeflateStream and HttpInflateStream
[m6w6/ext-http] / tests / encoding_objects_001.phpt
index d9cf992..f2fc6e2 100644 (file)
@@ -11,14 +11,14 @@ skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib");
 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!
+Yo...
 Done