summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2010-06-16 02:14:32 +0000
committerFelipe Pena <felipe@php.net>2010-06-16 02:14:32 +0000
commit42a57f7656b5cc2aa5ac6b2a1397a9978810cfcb (patch)
tree9e7a3e41122717c71b2bbaadb539cef766d4a602
parent45bd9b385ee2251f271ab85a7d1fc26eca4254ee (diff)
downloadphp-git-42a57f7656b5cc2aa5ac6b2a1397a9978810cfcb.tar.gz
- Fix tests
-rw-r--r--tests/output/ob_start_error_001.phpt2
-rw-r--r--tests/output/ob_start_error_002.phpt10
-rw-r--r--tests/output/ob_start_error_003.phpt4
-rw-r--r--tests/output/ob_start_error_004.phpt4
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