summaryrefslogtreecommitdiff
path: root/tests/php/phpt/valueiterator/006.phpt
diff options
context:
space:
mode:
authorvalmat <ufabiz@gmail.com>2014-03-18 15:18:11 +0600
committervalmat <ufabiz@gmail.com>2014-03-18 15:18:11 +0600
commite8334afd7f2920b706a3d28250a3e2b6dbd49538 (patch)
treea92e2b1b67c22eaad7eb84a2138ede2dae12e873 /tests/php/phpt/valueiterator/006.phpt
parentbfaed88493de0a3ebd7f2619cb11291cd09252b1 (diff)
Unit tests. For description see https://github.com/CopernicaMarketingSoftware/PHP-CPP/pull/25#issuecomment-37882236
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..d31cdda
--- /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("extention_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
+~impIterAggr2
+~impIterator \ No newline at end of file