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/027-env.h | |
parent | 6b5506dfe7b0f5ac9ce923c1d9cdd2ebc4c72a7c (diff) | |
parent | ea65bafff940dac23c52fc307b9a2e552b983102 (diff) |
Merge pull request #83 from valmat/tests
New tests
Diffstat (limited to 'tests/cpp/include/variables/027-env.h')
-rw-r--r-- | tests/cpp/include/variables/027-env.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/cpp/include/variables/027-env.h b/tests/cpp/include/variables/027-env.h new file mode 100644 index 0000000..b8455b4 --- /dev/null +++ b/tests/cpp/include/variables/027-env.h @@ -0,0 +1,26 @@ +/** + * + * Test superglobal variables _ENV + * 027-env.phpt + * + */ + + + +namespace TestVariables { + + + /* + * Test + */ + void test_env(void) + { + Php::out << "HTTP_USER_AGENT => " << Php::SERVER["HTTP_USER_AGENT"] << std::endl; + Php::out << "ENVVAR1 => " << Php::SERVER["ENVVAR1"] << std::endl; + Php::out << "HTTP_REFERER => " << Php::SERVER["HTTP_REFERER"] << std::endl; + Php::out << "REQUEST_METHOD => " << Php::SERVER["REQUEST_METHOD"] << std::endl; + Php::out << "HTTP_HOST => " << Php::SERVER["HTTP_HOST"] << std::endl; + } + +} + |