From c95360658fcf92a388cac3c7c20a48a488a2c791 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Tue, 15 Nov 2005 21:33:10 +0000 Subject: [PATCH] - MFH Add new test --- tests/classes/type_hinting_003.phpt | 60 +++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100755 tests/classes/type_hinting_003.phpt diff --git a/tests/classes/type_hinting_003.phpt b/tests/classes/type_hinting_003.phpt new file mode 100755 index 0000000000..4a83dd4197 --- /dev/null +++ b/tests/classes/type_hinting_003.phpt @@ -0,0 +1,60 @@ +--TEST-- +ZE2 class type hinting with arrays +--FILE-- + +--EXPECTF-- +Test::f1() +array(1) { + [0]=> + int(42) +} +Test::f2() +NULL +Test::f2() +NULL +Test::f3() +array(0) { +} +Test::f4() +array(1) { + [0]=> + int(25) +} + +Fatal error: Argument 1 passed to Test::f1() must be an array, called in %stype_hinting_003.php on line %d and defined in %stype_hinting_003.php on line %d -- 2.40.0