From 5ab6927a5fa17e73161d7126ca506e5e51ba0e55 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Wed, 28 Aug 2013 23:11:57 +0200 Subject: added parameter handling, and return value handling --- tests/simple/simple.cpp | 4 +++- tests/simple/simple.php | 18 +++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/simple/simple.cpp b/tests/simple/simple.cpp index 06d4431..db314ca 100644 --- a/tests/simple/simple.cpp +++ b/tests/simple/simple.cpp @@ -48,7 +48,9 @@ public: * Constructor */ SimpleExtension() : Extension("simple", "1.0", { - PhpCpp::Function("hallo") + PhpCpp::Function("hallo", { + PhpCpp::Argument("arg1", true) + }) }) { } diff --git a/tests/simple/simple.php b/tests/simple/simple.php index 0fb3e32..c8614da 100644 --- a/tests/simple/simple.php +++ b/tests/simple/simple.php @@ -1,3 +1,19 @@ \ No newline at end of file -- cgit v1.2.3