mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
- added basic output buffering tests
This commit is contained in:
parent
2c413f116a
commit
26e1958c8e
21
tests/func/006.phpt
Normal file
21
tests/func/006.phpt
Normal 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
|
Loading…
Reference in New Issue
Block a user