- added basic output buffering tests

This commit is contained in:
Jan Lehnardt 2002-03-24 23:16:42 +00:00
parent 2c413f116a
commit 26e1958c8e

21
tests/func/006.phpt Normal file
View File

@ -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