From: Marcus Boerger Date: Tue, 1 Jul 2003 19:12:23 +0000 (+0000) Subject: Add tests for static members X-Git-Tag: BEFORE_ARG_INFO~477 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26d0753804f0e21acfe838487ea4fc29ac5ae1d4;p=php Add tests for static members --- diff --git a/tests/classes/factory_and_singleton_004.phpt b/tests/classes/factory_and_singleton_004.phpt new file mode 100755 index 0000000000..047762d629 --- /dev/null +++ b/tests/classes/factory_and_singleton_004.phpt @@ -0,0 +1,18 @@ +--TEST-- +ZE2 factory and singleton, test 4 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Fatal error: Call to private constructor from context '' %sfactory_and_singleton_004.php on line %d diff --git a/tests/classes/factory_and_singleton_005.phpt b/tests/classes/factory_and_singleton_005.phpt new file mode 100755 index 0000000000..93f94c1422 --- /dev/null +++ b/tests/classes/factory_and_singleton_005.phpt @@ -0,0 +1,19 @@ +--TEST-- +ZE2 factory and singleton, test 5 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Fatal error: Call to protected destructor from context '' %sfactory_and_singleton_005.php on line %d diff --git a/tests/classes/factory_and_singleton_006.phpt b/tests/classes/factory_and_singleton_006.phpt new file mode 100755 index 0000000000..11655d8ade --- /dev/null +++ b/tests/classes/factory_and_singleton_006.phpt @@ -0,0 +1,19 @@ +--TEST-- +ZE2 factory and singleton, test 6 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Fatal error: Call to private destructor from context '' %sfactory_and_singleton_006.php on line %d