branch off v1 as R_1_7
[m6w6/ext-http] / tests / encoding_objects_001.phpt
index f2fc6e29588e7b792919111808346fd5078b35a4..60fe4cdc59b19cf00bdb78e6da3e32fa3f8afeb4 100644 (file)
@@ -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"));
+
+$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
+%aTEST
 Hi there!
 Yo...
+bool(true)
 Done