summaryrefslogtreecommitdiff
path: root/tests/simple/simple.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simple/simple.php')
-rw-r--r--tests/simple/simple.php19
1 files changed, 17 insertions, 2 deletions
diff --git a/tests/simple/simple.php b/tests/simple/simple.php
index 379f285..345c139 100644
--- a/tests/simple/simple.php
+++ b/tests/simple/simple.php
@@ -34,8 +34,23 @@
if (class_exists("my_class")) echo("Warempel, de class bestaat\n");
-$x = new my_class();
-$x->myMethod();
+class my_extended_class extends my_class
+{
+ public function myMethod($val)
+ {
+ echo($this->a."\n");
+ echo($this->b."\n");
+ echo("hoi\n");
+
+ parent::myMethod($val);
+ }
+
+}
+
+$x = new my_extended_class();
+$x->myMethod(123);
+
+my_plus(1,2,3,4);
//echo("my_class::a = ".$x->a."\n");
//echo("my_class::b = ".$x->b."\n");