From 8aa33ba24d56e1a631826bac47321a47ad0bb9e2 Mon Sep 17 00:00:00 2001 From: valmat Date: Mon, 14 Apr 2014 17:41:40 +0600 Subject: Several tests to check ini entries --- tests/cpp/include/ini_entries/001.h | 34 ++++++++++------------------------ 1 file changed, 10 insertions(+), 24 deletions(-) (limited to 'tests/cpp/include/ini_entries/001.h') 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 ¶ms) { - /* - .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 -- cgit v1.2.3