diff options
author | Jan Lehnardt <jan@php.net> | 2002-03-24 23:16:42 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@php.net> | 2002-03-24 23:16:42 +0000 |
commit | 26e1958c8e48be30cc731a78f3e22747498e3b19 (patch) | |
tree | a482ac0d0d9e0d060e236acad2b2c11fb46a99cf /tests/func | |
parent | 2c413f116aaf83eed98ba0c303e138d86a17633c (diff) | |
download | php-git-26e1958c8e48be30cc731a78f3e22747498e3b19.tar.gz |
- added basic output buffering tests
Diffstat (limited to 'tests/func')
-rw-r--r-- | tests/func/006.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/func/006.phpt b/tests/func/006.phpt new file mode 100644 index 0000000000..85a435be3c --- /dev/null +++ b/tests/func/006.phpt @@ -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 |