From f04053844828044a5fd2092e253aa7fa0d566c20 Mon Sep 17 00:00:00 2001 From: Anthony Ferrara Date: Wed, 18 Mar 2015 16:53:45 -0400 Subject: [PATCH] Add error case with invalid type declaration default value --- .../scalar_constant_defaults_error.phpt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Zend/tests/typehints/scalar_constant_defaults_error.phpt diff --git a/Zend/tests/typehints/scalar_constant_defaults_error.phpt b/Zend/tests/typehints/scalar_constant_defaults_error.phpt new file mode 100644 index 0000000000..53938d724f --- /dev/null +++ b/Zend/tests/typehints/scalar_constant_defaults_error.phpt @@ -0,0 +1,16 @@ +--TEST-- +Scalar type hint - default via constants - error condition +--FILE-- + +--EXPECTF-- +Fatal error: Argument 1 passed to int_val() must be of the type integer, string given, called in %s on line %d and defined in %s on line %d \ No newline at end of file -- 2.40.0