summaryrefslogtreecommitdiff
path: root/tests/php
diff options
context:
space:
mode:
authorvalmat <ufabiz@gmail.com>2014-03-27 23:36:57 +0600
committervalmat <ufabiz@gmail.com>2014-03-27 23:36:57 +0600
commitb2e2aa93754a12fac360e8de5196e45cd2f0f2aa (patch)
treedd4017052ebd84fa9642bad60455d6c3d7502e29 /tests/php
parent465f4b7b72a17102e91f05f5d36d024b73e3787c (diff)
add test: 007-Iterate-internal-array.phpt
Iterate internal array
Diffstat (limited to 'tests/php')
-rw-r--r--tests/php/dbg.php3
-rw-r--r--tests/php/phpt/valueiterator/007-Iterate-internal-array.phpt15
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/php/dbg.php b/tests/php/dbg.php
index 9a28fc6..4728700 100644
--- a/tests/php/dbg.php
+++ b/tests/php/dbg.php
@@ -11,3 +11,6 @@
+
+//---------
+TestValueIterator\loopArray(); \ No newline at end of file
diff --git a/tests/php/phpt/valueiterator/007-Iterate-internal-array.phpt b/tests/php/phpt/valueiterator/007-Iterate-internal-array.phpt
new file mode 100644
index 0000000..1f18203
--- /dev/null
+++ b/tests/php/phpt/valueiterator/007-Iterate-internal-array.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Iterate internal array
+--SKIPIF--
+<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
+--FILEEOF--
+<?php
+
+TestValueIterator\loopArray();
+
+--EXPECT--
+Array/Object contains 4 items
+[0]=val0
+[1]=val1
+[third]=val3
+[fourth]=val3