]> granicus.if.org Git - php/commitdiff
- Fix tests
authorFelipe Pena <felipe@php.net>
Wed, 16 Jun 2010 02:14:32 +0000 (02:14 +0000)
committerFelipe Pena <felipe@php.net>
Wed, 16 Jun 2010 02:14:32 +0000 (02:14 +0000)
tests/output/ob_start_error_001.phpt
tests/output/ob_start_error_002.phpt
tests/output/ob_start_error_003.phpt
tests/output/ob_start_error_004.phpt

index 0f6daf32958208ea1b671b4911724a0666bb0df4..e7dfa53efd894542b72f0ee8aee03377de9cd8ce 100644 (file)
@@ -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)
 
index 822aeb434bb75bc6307c362ec61b4ae1f64bb891..38c789908dbbe1f91fa24b070d0d136761c88547 100644 (file)
@@ -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
index 7bb88b41a18e4c6d61b8e052e62422b0a56e1501..7fa292a739257c2cc8a08119f52f1b836d195d47 100644 (file)
@@ -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
index aeb5be98b02f02f40eee97916400de7e30af718f..7ddf998557dca32d01627c2083c4165806851d5d 100644 (file)
@@ -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