diff options
author | valmat <ufabiz@gmail.com> | 2014-04-14 21:23:11 +0600 |
---|---|---|
committer | valmat <ufabiz@gmail.com> | 2014-04-14 21:23:11 +0600 |
commit | ea65bafff940dac23c52fc307b9a2e552b983102 (patch) | |
tree | 5a6c03c700125f06de81074774093620a4e9b2f1 /tests/cpp/include/variables/025-post-raw1.h | |
parent | 8aa33ba24d56e1a631826bac47321a47ad0bb9e2 (diff) |
Several tests on superglobals variables
Diffstat (limited to 'tests/cpp/include/variables/025-post-raw1.h')
-rw-r--r-- | tests/cpp/include/variables/025-post-raw1.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/cpp/include/variables/025-post-raw1.h b/tests/cpp/include/variables/025-post-raw1.h new file mode 100644 index 0000000..37c6ae1 --- /dev/null +++ b/tests/cpp/include/variables/025-post-raw1.h @@ -0,0 +1,41 @@ +/** + * + * Test superglobal variables _POST + * 025-post-raw1.phpt + * + */ + + + + +/** + * Set up namespace + */ +namespace TestVariables { + using namespace Php; + + + /* + * Test + */ + void post_raw1(void) + { + out << "username => "<< POST["username"] << std::endl; + out << "text => "<< POST["text"] << std::endl; + + /* + XXX TODO: conversion from ‘Php::Super’ to ‘Php::Value‘ + Value v = POST; + + out << "Array/Object contains " << v.size() << " items" << std::endl; + for (auto it=v.begin(), itend = v.end(); it != itend; ++it) { + out << "["<< it->first << "]="<< it->second << std::endl; + } + */ + } + +/** + * End of namespace + */ +} + |