From b66a39eb6e7b20f8ab1e4ad3d52409a500a721f9 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 21 Nov 2002 15:06:54 +0000 Subject: [PATCH] Test: An abstract function can be overwritten but not called --- tests/classes/abstract.phpt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/classes/abstract.phpt diff --git a/tests/classes/abstract.phpt b/tests/classes/abstract.phpt new file mode 100644 index 0000000000..365e5f2862 --- /dev/null +++ b/tests/classes/abstract.phpt @@ -0,0 +1,29 @@ +--TEST-- +An abstrcat function may not be called +--SKIPIF-- + +--FILE-- +show(); + +$t = new fail(); +$t->show(); + +echo "Done\n"; // shouldn't be displayed of cause +?> +--EXPECTF-- +Call to function show() + +Fatal error: Cannot call abstract method show() in %s on line %d \ No newline at end of file -- 2.50.1