From c7e5ab4d824354b40bcc6f13d3517e3778169ff9 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Mon, 7 Aug 2006 23:12:59 +0000 Subject: [PATCH] - Add new test --- tests/classes/ctor_visibility.phpt | 69 ++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100755 tests/classes/ctor_visibility.phpt diff --git a/tests/classes/ctor_visibility.phpt b/tests/classes/ctor_visibility.phpt new file mode 100755 index 0000000000..afc823cb82 --- /dev/null +++ b/tests/classes/ctor_visibility.phpt @@ -0,0 +1,69 @@ +--TEST-- +ZE2 A private constructor cannot be called +--FILE-- + +===DONE=== +--EXPECTF-- +Derived::__construct() +Test::__construct() +TestPriv::__construct() +DerivedPriv::__construct() + +Fatal error: Cannot call private TestPriv::__constrcut() in %sctor_visibility.php on line %d -- 2.50.1