From: Marcus Boerger Date: Thu, 21 Nov 2002 15:06:54 +0000 (+0000) Subject: Test: An abstract function can be overwritten but not called X-Git-Tag: RELEASE_1_0b2~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b66a39eb6e7b20f8ab1e4ad3d52409a500a721f9;p=php Test: An abstract function can be overwritten but not called --- 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