Skip to content

Commit 26e1958

Browse files
author
Jan Lehnardt
committed
- added basic output buffering tests
1 parent 2c413f1 commit 26e1958

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/func/006.phpt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
--TEST--
2+
Output buffering tests
3+
--POST--
4+
--GET--
5+
--FILE--
6+
<?php
7+
ob_start();
8+
echo ob_get_level();
9+
echo 'A';
10+
ob_start();
11+
echo ob_get_level();
12+
echo 'B';
13+
$b = ob_get_contents();
14+
ob_end_clean();
15+
$a = ob_get_contents();
16+
ob_end_clean();
17+
echo $b;
18+
echo $a;
19+
?>
20+
--EXPECT--
21+
3B2A

0 commit comments

Comments
 (0)