summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-09-15 13:57:53 -0700
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-09-15 13:57:53 -0700
commit9e1ecc534bace7d00a265a49018c0148a56361ae (patch)
treef7a779b999a7aed942510e3d448355f3554c20c7 /tests
parent9634a336f080bc15c1e67495eb9216d1863808f8 (diff)
Added Environment::call() method that makes it possible to call PHP functions
Diffstat (limited to 'tests')
-rw-r--r--tests/simple/simple.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/simple/simple.cpp b/tests/simple/simple.cpp
index dede458..fbc29d4 100644
--- a/tests/simple/simple.cpp
+++ b/tests/simple/simple.cpp
@@ -27,6 +27,10 @@ static Php::Value my_plus(Php::Environment &env, Php::Parameters &params)
g = "zo kan het ook";
+ string output = env.call("strtoupper","test in lowercase");
+
+ cout << "output: " << output << endl;
+
return p1 + p2;
}