summaryrefslogtreecommitdiff
path: root/tests/cpp/include/variables/023-cookie.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpp/include/variables/023-cookie.h')
-rw-r--r--tests/cpp/include/variables/023-cookie.h31
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
+ */
+}
+