diff options
author | valmat <ufabiz@gmail.com> | 2014-03-28 00:42:09 +0600 |
---|---|---|
committer | valmat <ufabiz@gmail.com> | 2014-03-28 00:42:09 +0600 |
commit | 28152192b85cbe9bf5ea08ebe8c706d12e2e13e5 (patch) | |
tree | d8a5cbee7e39f6b21c0e698d1ac10ac764b00193 /tests/cpp/main.cpp | |
parent | f56cff9e4f67a949e6f0ae35ca63aaaea16d9a41 (diff) |
add test: class_obj/003-comparable.phpt
Diffstat (limited to 'tests/cpp/main.cpp')
-rw-r--r-- | tests/cpp/main.cpp | 15 |
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 * |