diff --git a/tests/integration/errors/test_error_handler_false.php b/tests/integration/errors/test_error_handler_false.php new file mode 100644 index 000000000..abadfc5a9 --- /dev/null +++ b/tests/integration/errors/test_error_handler_false.php @@ -0,0 +1,96 @@ +propName); + +//trigger an error that is not handled by the custom error handler +trigger_error("Let this serve as a deprecation", E_USER_DEPRECATED); + + diff --git a/tests/integration/errors/test_error_handler_with_strings.php b/tests/integration/errors/test_error_handler_with_strings.php new file mode 100644 index 000000000..a541d257e --- /dev/null +++ b/tests/integration/errors/test_error_handler_with_strings.php @@ -0,0 +1,81 @@ +propName); + +// generate "Attempt to read property" error +$bar = false; +echo ($bar->var); + +// generate "Undefined array key" error +$missingOneArray = array(2=>'two', 4=>'four'); +echo $missingOneArray[1]; + + + diff --git a/tests/integration/errors/test_error_handler_with_strings.php7.php b/tests/integration/errors/test_error_handler_with_strings.php7.php new file mode 100644 index 000000000..dba203539 --- /dev/null +++ b/tests/integration/errors/test_error_handler_with_strings.php7.php @@ -0,0 +1,57 @@ +propName); + + +