summaryrefslogtreecommitdiff
path: root/tests/cpp/include/valueiterator/001-006.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-29 13:10:46 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-29 13:10:46 +0100
commit7b7efa4f80dc5c9d26b59087270a8d89fedcc808 (patch)
tree1dfb0ce4a6662a5bcb6562b40ab91f813a959afc /tests/cpp/include/valueiterator/001-006.h
parentc0e1f20eeab6445d6355ea11ef7d264cb37c52cf (diff)
parent8bd7f5162870e4b39c7629c1a67a3372402406c9 (diff)
Merge pull request #56 from valmat/tests
New tests
Diffstat (limited to 'tests/cpp/include/valueiterator/001-006.h')
-rw-r--r--tests/cpp/include/valueiterator/001-006.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/cpp/include/valueiterator/001-006.h b/tests/cpp/include/valueiterator/001-006.h
new file mode 100644
index 0000000..0dc6778
--- /dev/null
+++ b/tests/cpp/include/valueiterator/001-006.h
@@ -0,0 +1,27 @@
+/**
+ *
+ * TestValueIterator
+ * test valueiterator/001.phpt-valueiterator/006.phpt
+ *
+ */
+
+/**
+ * Set up namespace
+ */
+namespace TestValueIterator {
+
+
+ void loopValue(Php::Parameters &params)
+ {
+ std::cout << "Array/Object contains " << params[0].size() << " items" << std::endl;
+ for (auto it=params[0].begin(), itend = params[0].end(); it != itend; ++it) {
+ std::cout << "["<< it->first << "]="<< it->second << std::endl;
+ //std::cout << "["<< it->key() << "]="<< it->value() << std::endl;
+ }
+ return;
+ }
+/**
+ * End of namespace
+ */
+}
+