summaryrefslogtreecommitdiff
path: root/tests/cpp/include/variables/019-HashMember-1.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-05 23:14:21 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-05 23:14:21 +0200
commit3112304ec8516e0fcbe2672806d97900b8ff02ff (patch)
treec1fd8b5f03d6eafa3e73b78efa8f9b4d9675f49c /tests/cpp/include/variables/019-HashMember-1.h
parent479e9979a69b9fdb995525576d4588cd92239ed5 (diff)
parent877f40e4ec538260a58277ae9e3a50abcc857542 (diff)
Merge branch 'master' of https://github.com/CopernicaMarketingSoftware/PHP-CPP
Diffstat (limited to 'tests/cpp/include/variables/019-HashMember-1.h')
-rw-r--r--tests/cpp/include/variables/019-HashMember-1.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/cpp/include/variables/019-HashMember-1.h b/tests/cpp/include/variables/019-HashMember-1.h
new file mode 100644
index 0000000..28003f0
--- /dev/null
+++ b/tests/cpp/include/variables/019-HashMember-1.h
@@ -0,0 +1,33 @@
+/**
+ *
+ * Test variables
+ * 019-HashMember-1.phpt
+ * Test HashMember
+ *
+ */
+
+
+
+
+/**
+ * Set up namespace
+ */
+namespace TestVariables {
+
+ /**
+ * This function returns complex array
+ */
+ Php::Value test_HashMember_1()
+ {
+ Php::Value r, tmp(Php::Type::Array);
+ r["key1"] = tmp;
+ r["key1"]["key2"] = "val2";
+ r["key1"]["key3"] = "val3";
+ return r;
+ }
+
+/**
+ * End of namespace
+ */
+}
+