summaryrefslogtreecommitdiff
path: root/tests/cpp/main.cpp
diff options
context:
space:
mode:
authorvalmat <ufabiz@gmail.com>2014-03-28 22:34:50 +0600
committervalmat <ufabiz@gmail.com>2014-03-28 22:34:50 +0600
commit00f105e5490c96d2b39431d320f44e0f2ef040a5 (patch)
tree3fa6ce89b98569ba8fa32546eb399dfb0c92768a /tests/cpp/main.cpp
parent4091487adfbfd07750524fd7910d7178af21f816 (diff)
new test: Test class with static property and class constant
Diffstat (limited to 'tests/cpp/main.cpp')
-rw-r--r--tests/cpp/main.cpp5
1 files changed, 5 insertions, 0 deletions
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);