projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- use way less memory by not duplicating response headers and bodies
[m6w6/ext-http]
/
tests
/
encoding_objects_001.phpt
diff --git
a/tests/encoding_objects_001.phpt
b/tests/encoding_objects_001.phpt
index f2fc6e29588e7b792919111808346fd5078b35a4..67da0ce634b3945178b037a6d63e0c02fccb2bc2 100644
(file)
--- a/
tests/encoding_objects_001.phpt
+++ b/
tests/encoding_objects_001.phpt
@@
-14,11
+14,22
@@
$i = new HttpInflateStream;
echo $i->flush($d->flush("Hi "));
echo $i->finish($d->finish("there!\n"));
echo $i->finish($d->finish("Yo...\n"));
echo $i->flush($d->flush("Hi "));
echo $i->finish($d->finish("there!\n"));
echo $i->finish($d->finish("Yo...\n"));
+
+$id = $i->update($d->update($pd = file_get_contents(__FILE__)));
+foreach (glob('*.phpt') as $f) {
+ $id .= $i->update($d->update($tmp = file_get_contents($f)));
+ $pd .= $tmp;
+}
+$id .= $i->finish($d->finish());
+
+var_dump($id == $pd);
+
echo "Done\n";
?>
--EXPECTF--
%sTEST
Hi there!
Yo...
echo "Done\n";
?>
--EXPECTF--
%sTEST
Hi there!
Yo...
+bool(true)
Done
Done