diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-09-25 09:41:17 -0700 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-09-25 09:41:17 -0700 |
commit | 753402a84b40ff4dc9697dea1d2d4aa037ea7624 (patch) | |
tree | 9ff5e95a534265d01ae732a1e39dd3aaf3127803 /tests/simple/simple.php | |
parent | 49ac629257835426c311fb7b92b23a9138a9d77b (diff) |
Constructor gets almost called when object is constructed
Diffstat (limited to 'tests/simple/simple.php')
-rw-r--r-- | tests/simple/simple.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/simple/simple.php b/tests/simple/simple.php index af9a2a2..10cb603 100644 --- a/tests/simple/simple.php +++ b/tests/simple/simple.php @@ -31,3 +31,11 @@ echo("g1: $g1\n"); echo("g2: $g2\n"); echo("g3: $g3\n"); + +if (class_exists("my_class")) echo("Warempel, de class bestaat\n"); + +$x = new my_class(); + +$x->my_method(); + + |