let DEV_2 be trunk
[m6w6/ext-http] / tests / envresponsebody001.phpt
diff --git a/tests/envresponsebody001.phpt b/tests/envresponsebody001.phpt
new file mode 100644 (file)
index 0000000..616760e
--- /dev/null
@@ -0,0 +1,20 @@
+--TEST--
+env response body
+--SKIPIF--
+<?php
+include "skipif.inc";
+?>
+--INI--
+output_buffering=1
+--FILE--
+<?php
+echo "Test\n";
+$r = new http\Env\Response;
+var_dump((string) $r->getBody());
+?>
+Done
+--EXPECTF--
+Test
+string(5) "Test
+"
+Done