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.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/cpp/main.cpp b/tests/cpp/main.cpp
index 4e781d2..e5150ed 100644
--- a/tests/cpp/main.cpp
+++ b/tests/cpp/main.cpp
@@ -71,6 +71,10 @@ extern "C"
extension.add("TestVariables\\value_object1", TestVariables::value_object1);
extension.add("TestVariables\\value_object2", TestVariables::value_object2);
+ // A sample class, with methods to cast objects to scalars
+ Php::Class<TestVariables::Obj2Scalar> cObj2Scalar("Obj2Scalar");
+ extension.add(std::move(cObj2Scalar));
+