diff options
Diffstat (limited to 'tests/simple/simple.cpp')
-rw-r--r-- | tests/simple/simple.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/simple/simple.cpp b/tests/simple/simple.cpp new file mode 100644 index 0000000..36db294 --- /dev/null +++ b/tests/simple/simple.cpp @@ -0,0 +1,35 @@ +/** + * Simple.h + * + * A very simple extension that does almost nothing + * + * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com> + * @copyright 2013 Copernica BV + */ +#include <phpcpp.h> + +/** + * Override the extension class + */ +class SimpleExtension : public PhpCpp::Extension +{ +public: + /** + * Constructor + */ + SimpleExtension() : Extension( + "simple", + "1.0", + "Emiel Bruijntjes <emiel.bruijntjes@copernica.com>", + "http://www.copernica.com", + "Copyright 2013 Copernica BV") + { + } +}; + +extern "C" { + +// create the object for the PHP extension +PHP_CPP_EXTENSION(SimpleExtension); + +} |