summaryrefslogtreecommitdiff
path: root/tests/cpp/include/valueiterator/001-006.h
diff options
context:
space:
mode:
authorvalmat <ufabiz@gmail.com>2014-03-28 19:00:17 +0600
committervalmat <ufabiz@gmail.com>2014-03-28 19:00:17 +0600
commit708a22fae15b13db871ca5ffc73004c70f0584fe (patch)
tree639e424f544f8ca5c950803620399c57fceb69bd /tests/cpp/include/valueiterator/001-006.h
parent7bc500847e3027bb785c5525a21078ff72acc2ab (diff)
Changed the structure of the test file. With the increasing number of tests the old structure became uncomfortable.
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
+ */
+}
+