summaryrefslogtreecommitdiff
path: root/tests/php/phpt/valueiterator/006.phpt
diff options
context:
space:
mode:
authorvalmat <ufabiz@gmail.com>2014-03-27 02:35:25 +0600
committervalmat <ufabiz@gmail.com>2014-03-27 02:35:25 +0600
commit0c33b75e4adf790066091f402d70272a80d0ce59 (patch)
treeb71ea107aa058a6585fc2e83a4319075638c0698 /tests/php/phpt/valueiterator/006.phpt
parentba2e7e5f507dd75795fe5bdaf8cc1e1afd33446f (diff)
Minor changes to allow the use to tests and extension `.phpt-`
Diffstat (limited to 'tests/php/phpt/valueiterator/006.phpt')
-rw-r--r--tests/php/phpt/valueiterator/006.phpt21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/php/phpt/valueiterator/006.phpt b/tests/php/phpt/valueiterator/006.phpt
new file mode 100644
index 0000000..ea97c2b
--- /dev/null
+++ b/tests/php/phpt/valueiterator/006.phpt
@@ -0,0 +1,21 @@
+--TEST--
+Iterate itarable oblect
+--DESCRIPTION--
+class impIterAggr1 implements IteratorAggregate
+--SKIPIF--
+<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
+--FILEEOF--
+<?php
+require dirname(__FILE__) . '/../../include/valueiterator/1.php';
+
+$iag2 = new impIterAggr2;
+
+TestValueIterator\loopValue($iag2);
+
+--EXPECT--
+Array/Object contains 0 items
+[key_0]=firstElement
+[key_1]=secondElement
+[key_2]=lastelEment
+~impIterator
+~impIterAggr2