diff options
author | valmat <ufabiz@gmail.com> | 2014-03-27 01:19:12 +0600 |
---|---|---|
committer | valmat <ufabiz@gmail.com> | 2014-03-27 01:19:12 +0600 |
commit | d0d062b4a05a9eb64b8d2e6d038af96ac532e4b3 (patch) | |
tree | 4fc4026b988ca6da18a88d2e34dd1d88c28d24ae /tests/php/phpt/valueiterator/006.phpt- | |
parent | 702c95cf779226550af6b33255a8e1b28ccca428 (diff) |
Added new tests.
Due to support zts broke the ability to run tests without installation - fixed.
Diffstat (limited to 'tests/php/phpt/valueiterator/006.phpt-')
-rw-r--r-- | tests/php/phpt/valueiterator/006.phpt- | 21 |
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 |