diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-14 20:53:41 +0200 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-14 20:53:41 +0200 |
commit | a7aa0760a01857606ea67c5d8c63df39e0274952 (patch) | |
tree | 5a6c03c700125f06de81074774093620a4e9b2f1 /tests/cpp/include/variables/023-cookie.h | |
parent | 6b5506dfe7b0f5ac9ce923c1d9cdd2ebc4c72a7c (diff) | |
parent | ea65bafff940dac23c52fc307b9a2e552b983102 (diff) |
Merge pull request #83 from valmat/tests
New tests
Diffstat (limited to 'tests/cpp/include/variables/023-cookie.h')
-rw-r--r-- | tests/cpp/include/variables/023-cookie.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/cpp/include/variables/023-cookie.h b/tests/cpp/include/variables/023-cookie.h new file mode 100644 index 0000000..6f74883 --- /dev/null +++ b/tests/cpp/include/variables/023-cookie.h @@ -0,0 +1,31 @@ +/** + * + * Test superglobal variables _COOKIE + * 023-cookie.phpt + * + */ + + + + +/** + * Set up namespace + */ +namespace TestVariables { + + + /* + * Test + */ + void getCookie(void) + { + Php::out << "_COOKIE[peace] = " << Php::COOKIE["peace"] << std::endl; + Php::out << "_COOKIE[freedom] = " << Php::COOKIE["freedom"] << std::endl; + Php::out << "_COOKIE[empty] = " << Php::COOKIE["empty"] << std::endl; + } + +/** + * End of namespace + */ +} + |