Skip to content

Commit fca2f52

Browse files
committed
adjust existing tests for non-fatal error
1 parent 523965c commit fca2f52

10 files changed

+50
-10
lines changed

Zend/tests/debug_info-error-0.0.phpt

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ $c = new C(0.0);
1717
var_dump($c);
1818
?>
1919
--EXPECTF--
20-
Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-0.0.php on line %d
20+
Fatal error: Uncaught Error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-0.0.php:14
21+
Stack trace:
22+
#0 %s(14): var_dump(Object(C))
23+
#1 {main}
24+
thrown in %s on line 14

Zend/tests/debug_info-error-0.phpt

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ $c = new C(0);
1717
var_dump($c);
1818
?>
1919
--EXPECTF--
20-
Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-0.php on line %d
20+
Fatal error: Uncaught Error: __debuginfo() must return an array in __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-0.php:14
21+
Stack trace:
22+
#0 %s(14): var_dump(Object(C))
23+
#1 {main}
24+
thrown in %s on line 14

Zend/tests/debug_info-error-1.0.phpt

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ $c = new C(1.0);
1717
var_dump($c);
1818
?>
1919
--EXPECTF--
20-
Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-1.0.php on line %d
20+
Fatal error: Uncaught Error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-1.0.php:14
21+
Stack trace:
22+
#0 %s(14): var_dump(Object(C))
23+
#1 {main}
24+
thrown in %s on line 14

Zend/tests/debug_info-error-1.phpt

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ $c = new C(1);
1717
var_dump($c);
1818
?>
1919
--EXPECTF--
20-
Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-1.php on line %d
20+
Fatal error: Uncaught Error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-1.php:14
21+
Stack trace:
22+
#0 %s(14): var_dump(Object(C))
23+
#1 {main}
24+
thrown in %s on line 14

Zend/tests/debug_info-error-empty_str.phpt

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ $c = new C("");
1717
var_dump($c);
1818
?>
1919
--EXPECTF--
20-
Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-empty_str.php on line %d
20+
Fatal error: Uncaught Error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-empty_str.php:14
21+
Stack trace:
22+
#0 %s(14): var_dump(Object(C))
23+
#1 {main}
24+
thrown in %s on line 14

Zend/tests/debug_info-error-false.phpt

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ $c = new C(false);
1717
var_dump($c);
1818
?>
1919
--EXPECTF--
20-
Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-false.php on line %d
20+
Fatal error: Uncaught Error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-false.php:14
21+
Stack trace:
22+
#0 %s(14): var_dump(Object(C))
23+
#1 {main}
24+
thrown in %s on line 14

Zend/tests/debug_info-error-object.phpt

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ $c = new C(new stdClass);
1717
var_dump($c);
1818
?>
1919
--EXPECTF--
20-
Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-object.php on line %d
20+
Fatal error: Uncaught Error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-object.php:14
21+
Stack trace:
22+
#0 %s(14): var_dump(Object(C))
23+
#1 {main}
24+
thrown in %s on line 14

Zend/tests/debug_info-error-resource.phpt

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ $c = new C(fopen("data:text/plain,Foo", 'r'));
1919
var_dump($c);
2020
?>
2121
--EXPECTF--
22-
Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-resource.php on line %d
22+
Fatal error: Uncaught Error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-resource.php:14
23+
Stack trace:
24+
#0 %s(14): var_dump(Object(C))
25+
#1 {main}
26+
thrown in %s on line 14

Zend/tests/debug_info-error-str.phpt

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ $c = new C("foo");
1717
var_dump($c);
1818
?>
1919
--EXPECTF--
20-
Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-str.php on line %d
20+
Fatal error: Uncaught Error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-str.php:14
21+
Stack trace:
22+
#0 %s(14): var_dump(Object(C))
23+
#1 {main}
24+
thrown in %s on line 14

Zend/tests/debug_info-error-true.phpt

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ $c = new C(true);
1717
var_dump($c);
1818
?>
1919
--EXPECTF--
20-
Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-true.php on line %d
20+
Fatal error: Uncaught Error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-true.php:14
21+
Stack trace:
22+
#0 %s(14): var_dump(Object(C))
23+
#1 {main}
24+
thrown in %s on line 14

0 commit comments

Comments
 (0)