diff options
Diffstat (limited to 'tests/php/phpt/valueiterator/001.phpt')
-rw-r--r-- | tests/php/phpt/valueiterator/001.phpt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/php/phpt/valueiterator/001.phpt b/tests/php/phpt/valueiterator/001.phpt new file mode 100644 index 0000000..ae85e23 --- /dev/null +++ b/tests/php/phpt/valueiterator/001.phpt @@ -0,0 +1,22 @@ +--TEST-- +Iterate array +--DESCRIPTION-- +Iterate regular php array +--SKIPIF-- +<?php if (!extension_loaded("extention_for_tests")) print "skip"; ?> +--FILEEOF-- +<?php +require dirname(__FILE__) . '/../../include/valueiterator/1.php'; + +$arr = array('qwe' => 'qweqweqweqw',5,'asd' => '«£¥§©®°±¶⅐⅒⅓⅘⅞Ⅻↆ❄❅❆⚑⚐⌛⌚〰»', 'zxccvx' => 'sdfsecvyh6bug6yfty',); + +TestValueIterator\loopValue($arr); + +echo PHP_EOL; +--EXPECT-- +Array/Object contains 4 items +[qwe]=qweqweqweqw +[0]=5 +[asd]=«£¥§©®°±¶⅐⅒⅓⅘⅞Ⅻↆ❄❅❆⚑⚐⌛⌚〰» +[zxccvx]=sdfsecvyh6bug6yfty + |