diff options
author | valmat <ufabiz@gmail.com> | 2014-03-28 19:00:17 +0600 |
---|---|---|
committer | valmat <ufabiz@gmail.com> | 2014-03-28 19:00:17 +0600 |
commit | 708a22fae15b13db871ca5ffc73004c70f0584fe (patch) | |
tree | 639e424f544f8ca5c950803620399c57fceb69bd /tests/cpp/main.cpp | |
parent | 7bc500847e3027bb785c5525a21078ff72acc2ab (diff) |
Changed the structure of the test file. With the increasing number of tests the old structure became uncomfortable.
Diffstat (limited to 'tests/cpp/main.cpp')
-rw-r--r-- | tests/cpp/main.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/cpp/main.cpp b/tests/cpp/main.cpp index b892b41..c1e33b1 100644 --- a/tests/cpp/main.cpp +++ b/tests/cpp/main.cpp @@ -8,9 +8,9 @@ #include <phpcpp.h> // Test includes -#include "include/ValueIterator.h" -#include "include/Classes_and_objects.h" -#include "include/variables.h" +#include "h/ValueIterator.h" +#include "h/Classes_and_objects.h" +#include "h/variables.h" @@ -90,6 +90,7 @@ extern "C" * tests for variables * */ + // create a nested namespace extension.add("TestVariables\\process_globals", TestVariables::process_globals); extension.add("TestVariables\\get_complex_array", TestVariables::get_complex_array); extension.add("TestVariables\\value_types", TestVariables::value_types); @@ -103,7 +104,7 @@ extern "C" extension.add("TestVariables\\value_object2", TestVariables::value_object2); // A sample class, with methods to cast objects to scalars - Php::Class<TestVariables::Obj2Scalar> cObj2Scalar("Obj2Scalar"); + Php::Class<TestVariables::Obj2Scalar> cObj2Scalar("TestVariables\\Obj2Scalar"); extension.add(std::move(cObj2Scalar)); |