From: Marcus Boerger Date: Mon, 7 Aug 2006 23:12:59 +0000 (+0000) Subject: - Add new test X-Git-Tag: RELEASE_1_0_0RC1~2051 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7e5ab4d824354b40bcc6f13d3517e3778169ff9;p=php - Add new test --- 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