summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-08-25 23:10:15 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-08-25 23:10:15 +0200
commit9ba4fb9ae4233a656bbfca1b169b0a608202b717 (patch)
tree0ccad56abc640ace7c97847552ff99702e16c577 /tests
parente14055694478d70e58b5fc653b08a9a514bbc455 (diff)
By hiding a pointer to the callable object in front of the function name we have managed to retrieve back the callable object, so we can pass all callbacks to one single function, which will further deliver them to the appropriate function object
Diffstat (limited to 'tests')
-rw-r--r--tests/simple/simple.cpp2
-rw-r--r--tests/simple/simple.php3
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/simple/simple.cpp b/tests/simple/simple.cpp
index ec39770..06d4431 100644
--- a/tests/simple/simple.cpp
+++ b/tests/simple/simple.cpp
@@ -7,8 +7,8 @@
* @copyright 2013 Copernica BV
*/
#include <string>
-#include <phpcpp.h>
#include <iostream>
+#include <phpcpp.h>
/**
* Namespace to use
diff --git a/tests/simple/simple.php b/tests/simple/simple.php
new file mode 100644
index 0000000..0fb3e32
--- /dev/null
+++ b/tests/simple/simple.php
@@ -0,0 +1,3 @@
+<?php
+hallo();
+?> \ No newline at end of file