let DEV_2 be trunk
[m6w6/ext-http] / tests / message010.phpt
diff --git a/tests/message010.phpt b/tests/message010.phpt
new file mode 100644 (file)
index 0000000..5a51510
--- /dev/null
@@ -0,0 +1,26 @@
+--TEST--
+message body
+--SKIPIF--
+<?php
+include "skipif.inc";
+?>
+--FILE--
+<?php
+
+echo "Test\n";
+
+$m = new http\Message;
+$body = new http\Message\Body;
+$body->append("foo");
+$m->addBody($body);
+$body = new http\Message\Body;
+$body->append("bar");
+$m->addBody($body);
+var_dump("foobar" === (string) $m->getBody());
+
+?>
+Done
+--EXPECT--
+Test
+bool(true)
+Done