summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-08-25 17:40:03 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-08-25 17:40:03 +0200
commite14055694478d70e58b5fc653b08a9a514bbc455 (patch)
treeab47d723699a7fe86f47f68c182ab695bf9b3bab /tests
parente838e180f5bbcf19e7235f30311645e942ff92d2 (diff)
{more work in progress: the function that was defined with c++ now gets calls, but it does not yet call the actual implementation
Diffstat (limited to 'tests')
-rw-r--r--tests/simple/Makefile2
-rw-r--r--tests/simple/simple.cpp8
2 files changed, 8 insertions, 2 deletions
diff --git a/tests/simple/Makefile b/tests/simple/Makefile
index e3bd7c7..e60be3a 100644
--- a/tests/simple/Makefile
+++ b/tests/simple/Makefile
@@ -1,6 +1,6 @@
CPP = g++
RM = rm -f
-CPP_FLAGS = -Wall -c -I. -O2
+CPP_FLAGS = -Wall -c -I. -O2 -std=c++11
LD = g++
LD_FLAGS = -Wall -shared -O2
diff --git a/tests/simple/simple.cpp b/tests/simple/simple.cpp
index 34a12ce..ec39770 100644
--- a/tests/simple/simple.cpp
+++ b/tests/simple/simple.cpp
@@ -6,6 +6,7 @@
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
* @copyright 2013 Copernica BV
*/
+#include <string>
#include <phpcpp.h>
#include <iostream>
@@ -46,7 +47,9 @@ public:
/**
* Constructor
*/
- SimpleExtension() : Extension("simple", "1.0")
+ SimpleExtension() : Extension("simple", "1.0", {
+ PhpCpp::Function("hallo")
+ })
{
}
@@ -68,5 +71,8 @@ public:
}
};
+
+
+
// create the object for the PHP extension
PHP_CPP_EXTENSION(SimpleExtension);