From: andy wharmby Date: Sun, 14 Jun 2009 16:47:12 +0000 (+0000) Subject: Backport ob test to php 5.2 and 53. X-Git-Tag: php-5.2.10~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7012611307105fd82ec694b8c76f973743049ad5;p=php Backport ob test to php 5.2 and 53. --- diff --git a/tests/output/ob_001.phpt b/tests/output/ob_001.phpt new file mode 100644 index 0000000000..ecacf0208b --- /dev/null +++ b/tests/output/ob_001.phpt @@ -0,0 +1,8 @@ +--TEST-- +output buffering - nothing +--FILE-- + +--EXPECT-- +foo diff --git a/tests/output/ob_002.phpt b/tests/output/ob_002.phpt new file mode 100644 index 0000000000..94f515b02d --- /dev/null +++ b/tests/output/ob_002.phpt @@ -0,0 +1,9 @@ +--TEST-- +output buffering - ob_start +--FILE-- + +--EXPECT-- +foo diff --git a/tests/output/ob_003.phpt b/tests/output/ob_003.phpt new file mode 100644 index 0000000000..988d19701c --- /dev/null +++ b/tests/output/ob_003.phpt @@ -0,0 +1,13 @@ +--TEST-- +output buffering - ob_flush +--FILE-- + +--EXPECT-- +foo +bar diff --git a/tests/output/ob_004.phpt b/tests/output/ob_004.phpt new file mode 100644 index 0000000000..a089a8ca58 --- /dev/null +++ b/tests/output/ob_004.phpt @@ -0,0 +1,11 @@ +--TEST-- +output buffering - ob_clean +--FILE-- + +--EXPECT-- +bar diff --git a/tests/output/ob_005.phpt b/tests/output/ob_005.phpt new file mode 100644 index 0000000000..bbe807d9b8 --- /dev/null +++ b/tests/output/ob_005.phpt @@ -0,0 +1,14 @@ +--TEST-- +output buffering - ob_end_clean +--FILE-- + +--EXPECT-- +foo +baz diff --git a/tests/output/ob_006.phpt b/tests/output/ob_006.phpt new file mode 100644 index 0000000000..aec3cfc54d --- /dev/null +++ b/tests/output/ob_006.phpt @@ -0,0 +1,12 @@ +--TEST-- +output buffering - ob_end_flush +--FILE-- + +--EXPECT-- +foo +int(0) diff --git a/tests/output/ob_007.phpt b/tests/output/ob_007.phpt new file mode 100644 index 0000000000..059925cbd2 --- /dev/null +++ b/tests/output/ob_007.phpt @@ -0,0 +1,11 @@ +--TEST-- +output buffering - ob_get_clean +--FILE-- + +--EXPECT-- +string(4) "foo +" diff --git a/tests/output/ob_008.phpt b/tests/output/ob_008.phpt new file mode 100644 index 0000000000..17a808119b --- /dev/null +++ b/tests/output/ob_008.phpt @@ -0,0 +1,11 @@ +--TEST-- +output buffering - ob_get_contents +--FILE-- + +--EXPECT-- +foo +foo diff --git a/tests/output/ob_009.phpt b/tests/output/ob_009.phpt new file mode 100644 index 0000000000..80edb465f7 --- /dev/null +++ b/tests/output/ob_009.phpt @@ -0,0 +1,12 @@ +--TEST-- +output buffering - ob_get_flush +--FILE-- + +--EXPECT-- +foo +string(4) "foo +" diff --git a/tests/output/ob_010.phpt b/tests/output/ob_010.phpt new file mode 100644 index 0000000000..24d650c50d --- /dev/null +++ b/tests/output/ob_010.phpt @@ -0,0 +1,13 @@ +--TEST-- +output buffering - fatalism +--FILE-- + +--EXPECTF-- +Fatal error: print_r(): Cannot use output buffering in output buffering display handlers in %sob_010.php on line %d