summaryrefslogtreecommitdiff
path: root/tests/cpp/include/ini_entries/001.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-14 20:53:41 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-14 20:53:41 +0200
commita7aa0760a01857606ea67c5d8c63df39e0274952 (patch)
tree5a6c03c700125f06de81074774093620a4e9b2f1 /tests/cpp/include/ini_entries/001.h
parent6b5506dfe7b0f5ac9ce923c1d9cdd2ebc4c72a7c (diff)
parentea65bafff940dac23c52fc307b9a2e552b983102 (diff)
Merge pull request #83 from valmat/tests
New tests
Diffstat (limited to 'tests/cpp/include/ini_entries/001.h')
-rw-r--r--tests/cpp/include/ini_entries/001.h34
1 files changed, 10 insertions, 24 deletions
diff --git a/tests/cpp/include/ini_entries/001.h b/tests/cpp/include/ini_entries/001.h
index ece2aa4..8a4c5ca 100644
--- a/tests/cpp/include/ini_entries/001.h
+++ b/tests/cpp/include/ini_entries/001.h
@@ -10,33 +10,19 @@
*/
namespace TestIniEntries {
-
+ // will be retrieved at boot extension
+ double ini6val = 0.0;
+
void iniTest1(Php::Parameters &params)
{
- /*
- .add(Php::Ini(, "valIni1"))
- .add(Php::Ini("ini2", "valIni2", "OrigValIni2"))
- .add(Php::Ini("ini3", "valIni3", "OrigValIni3", Php::Ini::System))
- .add(Php::Ini("ini4", true, false, Php::Ini::Place::User))
- .add(Php::Ini("ini5", false));
-
- Ini::get("ini1")
- */
-
- Php::out << "ini_get(ini1) = {{" << Php::ini_get("ini1") << " | " << Php::ini_get_orig("ini1") << "}}" << std::endl;
- Php::out << "ini_get(ini2) = {{" << Php::ini_get("ini2") << " | " << Php::ini_get_orig("ini2") << "}}" << std::endl;
- Php::out << "ini_get(ini3) = {{" << Php::ini_get("ini3") << " | " << Php::ini_get_orig("ini3") << "}}" << std::endl;
- Php::out << "ini_get(ini4) = {{" << Php::ini_get("ini4") << " | " << Php::ini_get_orig("ini4") << "}}" << std::endl;
- /*
- Php::out << "extension_for_tests.some_string ={{" << Php::ini_get("extension_for_tests.some_string") << "}}" << std::endl;
- Php::out << "extension_for_tests.some_string2 ={{" << Php::ini_get("extension_for_tests.some_string2") << "}}" << std::endl;
- Php::out << "extension_for_tests.some_string3 ={{" << Php::ini_get("extension_for_tests.some_string3") << "}}" << std::endl;
- Php::out << "extension_for_tests.some_string3 ={{" << Php::ini_get("extension_for_tests.some_bool") << "}}" << std::endl;
- */
-
-
+ Php::out << "ini_get(ini1) = " << Php::ini_get("ini1") << std::endl;
+ Php::out << "ini_get(ini2) = " << Php::ini_get("ini2") << std::endl;
+ Php::out << "ini_get(ini3) = " << Php::ini_get("ini3") << std::endl;
+ Php::out << "ini_get(ini4) = " << Php::ini_get("ini4") << std::endl;
+ Php::out << "ini_get(ini5) = " << Php::ini_get("ini5") << std::endl;
+ Php::out << "ini_get(ini6) = " << Php::ini_get("ini6") << std::endl;
- return;
+ Php::out << "ini6val = " << ini6val << std::endl;
}
/**
* End of namespace