From 42a57f7656b5cc2aa5ac6b2a1397a9978810cfcb Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 16 Jun 2010 02:14:32 +0000 Subject: [PATCH] - Fix tests --- tests/output/ob_start_error_001.phpt | 2 ++ tests/output/ob_start_error_002.phpt | 10 +++++++++- tests/output/ob_start_error_003.phpt | 4 +++- tests/output/ob_start_error_004.phpt | 4 +++- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/tests/output/ob_start_error_001.phpt b/tests/output/ob_start_error_001.phpt index 0f6daf3295..e7dfa53efd 100644 --- a/tests/output/ob_start_error_001.phpt +++ b/tests/output/ob_start_error_001.phpt @@ -37,6 +37,8 @@ bool(false) - Arg 1 wrong type +Warning: ob_start(): no array or string given in %s on line 20 + Notice: ob_start(): failed to create buffer in %s on line 20 bool(false) diff --git a/tests/output/ob_start_error_002.phpt b/tests/output/ob_start_error_002.phpt index 822aeb434b..38c789908d 100644 --- a/tests/output/ob_start_error_002.phpt +++ b/tests/output/ob_start_error_002.phpt @@ -20,15 +20,23 @@ var_dump(ob_start("no")); echo "done" ?> --EXPECTF-- +Warning: ob_start(): class 'nonExistent' not found in %s on line 13 + Notice: ob_start(): failed to create buffer in %s on line 13 bool(false) +Warning: ob_start(): class 'C' does not have a method 'nonExistent' in %s on line 14 + Notice: ob_start(): failed to create buffer in %s on line 14 bool(false) +Warning: ob_start(): class 'C' does not have a method 'no' in %s on line 15 + Notice: ob_start(): failed to create buffer in %s on line 15 bool(false) +Warning: ob_start(): function 'no' not found or invalid function name in %s on line 16 + Notice: ob_start(): failed to create buffer in %s on line 16 bool(false) -done \ No newline at end of file +done diff --git a/tests/output/ob_start_error_003.phpt b/tests/output/ob_start_error_003.phpt index 7bb88b41a1..7fa292a739 100644 --- a/tests/output/ob_start_error_003.phpt +++ b/tests/output/ob_start_error_003.phpt @@ -15,6 +15,8 @@ var_dump(ob_start(array($c))); echo "done" ?> --EXPECTF-- +Warning: ob_start(): array must have exactly two members in %s on line %d + Notice: ob_start(): failed to create buffer in %s on line 11 bool(false) -done \ No newline at end of file +done diff --git a/tests/output/ob_start_error_004.phpt b/tests/output/ob_start_error_004.phpt index aeb5be98b0..7ddf998557 100644 --- a/tests/output/ob_start_error_004.phpt +++ b/tests/output/ob_start_error_004.phpt @@ -15,6 +15,8 @@ var_dump(ob_start(array($c, 'f'))); echo "done" ?> --EXPECTF-- +Warning: ob_start(): class 'C' does not have a method 'f' in %s on line %d + Notice: ob_start(): failed to create buffer in %s on line 11 bool(false) -done \ No newline at end of file +done -- 2.40.0