summaryrefslogtreecommitdiff
path: root/tests/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpp')
-rw-r--r--tests/cpp/include/variables/013-018-calling-php-functions.h10
-rw-r--r--tests/cpp/main.cpp5
2 files changed, 5 insertions, 10 deletions
diff --git a/tests/cpp/include/variables/013-018-calling-php-functions.h b/tests/cpp/include/variables/013-018-calling-php-functions.h
index c646f60..9a77408 100644
--- a/tests/cpp/include/variables/013-018-calling-php-functions.h
+++ b/tests/cpp/include/variables/013-018-calling-php-functions.h
@@ -108,16 +108,6 @@ namespace TestVariables {
// call callable object of class from user space
Php::Object clbl("CallableClass", "Arctics around mount Meru");
Php::out << clbl("is the birthplace of the Hyperboreans") << std::endl;
-
-
-
- //::someMethod
- //(new usrspClass("Mount Meru"))->someMethod("is in the Arctics");
-
-
-
-
-
}
/**
diff --git a/tests/cpp/main.cpp b/tests/cpp/main.cpp
index 5d0d0a6..db2416d 100644
--- a/tests/cpp/main.cpp
+++ b/tests/cpp/main.cpp
@@ -49,6 +49,11 @@ extern "C"
customClass.property("property1", "prop1");
customClass.property("property2", "prop2", Php::Protected);
+ customClass.property("CONSTANT1", "some string", Php::Const);
+ customClass.property("EXP", 2.718281828459, Php::Const);
+ customClass.property("CONSTANT2", -2582341, Php::Const);
+ customClass.property("CONSTANT1", true, Php::Const);
+
// add the class to the extension
extension.add(customClass);