]> granicus.if.org Git - php/commitdiff
- added basic output buffering tests
authorJan Lehnardt <jan@php.net>
Sun, 24 Mar 2002 23:16:42 +0000 (23:16 +0000)
committerJan Lehnardt <jan@php.net>
Sun, 24 Mar 2002 23:16:42 +0000 (23:16 +0000)
tests/func/006.phpt [new file with mode: 0644]

diff --git a/tests/func/006.phpt b/tests/func/006.phpt
new file mode 100644 (file)
index 0000000..85a435b
--- /dev/null
@@ -0,0 +1,21 @@
+--TEST--
+Output buffering tests
+--POST--
+--GET--
+--FILE--
+<?php
+ob_start();
+echo ob_get_level();
+echo 'A';
+  ob_start();
+  echo ob_get_level();
+  echo 'B';
+  $b = ob_get_contents();
+  ob_end_clean();
+$a = ob_get_contents();
+ob_end_clean();
+echo $b;
+echo $a;
+?>
+--EXPECT--
+3B2A