summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-11-28 17:07:50 +0000
committerMarcus Boerger <helly@php.net>2002-11-28 17:07:50 +0000
commite7f5b801beeaf8c8f7a9f3f35166dc64cf1bc2a9 (patch)
tree71e2c43ac4837b79b330acc425de9612128e69a1
parent398ff4fe82885b79bcaa789f7b56e8f8ec357b24 (diff)
downloadphp-git-e7f5b801beeaf8c8f7a9f3f35166dc64cf1bc2a9.tar.gz
Do not instanciate an abstract class
-rw-r--r--tests/classes/abstract.phpt9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/classes/abstract.phpt b/tests/classes/abstract.phpt
index 75e5be7c53..728f2cceda 100644
--- a/tests/classes/abstract.phpt
+++ b/tests/classes/abstract.phpt
@@ -13,13 +13,14 @@ class pass extends fail {
function show() {
echo "Call to function show()\n";
}
+ function error() {
+ parent::show();
+ }
}
-$t2 = new pass();
-$t2->show();
-
-$t = new fail();
+$t = new pass();
$t->show();
+$t->error();
echo "Done\n"; // shouldn't be displayed of cause
?>