summaryrefslogtreecommitdiff
path: root/tests/php/phpt/valueiterator/004.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/php/phpt/valueiterator/004.phpt')
-rw-r--r--tests/php/phpt/valueiterator/004.phpt20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/php/phpt/valueiterator/004.phpt b/tests/php/phpt/valueiterator/004.phpt
new file mode 100644
index 0000000..3e6afb7
--- /dev/null
+++ b/tests/php/phpt/valueiterator/004.phpt
@@ -0,0 +1,20 @@
+--TEST--
+Iterate itarable oblect
+--DESCRIPTION--
+class impIterator implements Iterator
+--SKIPIF--
+<?php if (!extension_loaded("extention_for_tests")) print "skip"; ?>
+--FILEEOF--
+<?php
+require dirname(__FILE__) . '/../../include/valueiterator/1.php';
+
+$it = new impIterator;
+
+TestValueIterator\loopValue($it);
+
+--EXPECT--
+Array/Object contains 0 items
+[key_0]=firstElement
+[key_1]=secondElement
+[key_2]=lastelEment
+~impIterator \ No newline at end of file