summaryrefslogtreecommitdiff
path: root/tests/simple/simple.php
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-10-15 05:54:52 -0700
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-10-15 05:54:52 -0700
commit61ba30d716dab670a5f2ed0ee2f6650375b2058d (patch)
tree711db9359015de260071088ef027b020cd95d4b3 /tests/simple/simple.php
parentb2042dbd58c043ab49e9b0dbb51bf8516fe8cea8 (diff)
Calling custom member methods is now functional
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");