summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/simple/simple.cpp25
-rw-r--r--tests/simple/simple.php8
2 files changed, 33 insertions, 0 deletions
diff --git a/tests/simple/simple.cpp b/tests/simple/simple.cpp
index f2a5207..39e615a 100644
--- a/tests/simple/simple.cpp
+++ b/tests/simple/simple.cpp
@@ -45,7 +45,32 @@ static Php::Value my_plus(Php::Environment &env, Php::Parameters &params)
*/
class MyCustomClass : public Php::Base
{
+private:
+ int _x;
+
public:
+ MyCustomClass()
+ {
+ }
+
+ virtual void __construct()
+ {
+
+ }
+
+ virtual void __destruct()
+ {
+
+
+ }
+
+ void myMethod(Php::Parameters &params)
+ {
+
+
+ }
+
+
};
// symbols are exported according to the "C" language
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();
+
+