summaryrefslogtreecommitdiff
path: root/tests/cpp/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpp/main.cpp')
-rw-r--r--tests/cpp/main.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/cpp/main.cpp b/tests/cpp/main.cpp
index e5150ed..7569a0b 100644
--- a/tests/cpp/main.cpp
+++ b/tests/cpp/main.cpp
@@ -9,7 +9,7 @@
// Test includes
#include "include/ValueIterator.h"
-#include "include/MyCustomClass.h"
+#include "include/Classes_and_objects.h"
#include "include/variables.h"
@@ -33,7 +33,14 @@ extern "C"
// add the interface to the extension
//extension.add(interface);
+
+
+
+ /**
+ * Classes and objects
+ *
+ */
// we are going to define a class
Php::Class<TestBaseClass::MyCustomClass> customClass("TestBaseClass\\MyClass");
@@ -45,6 +52,12 @@ extern "C"
// add the class to the extension
extension.add(customClass);
+ // Comparable
+ extension.add( Php::Class<TestBaseClass::Comparable>("TestBaseClass\\Comparable") );
+
+
+
+
/**
* tests for Iterators
*