diff options
Diffstat (limited to 'Zend/tests/each_002.phpt')
-rw-r--r-- | Zend/tests/each_002.phpt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Zend/tests/each_002.phpt b/Zend/tests/each_002.phpt new file mode 100644 index 0000000..f47ded4 --- /dev/null +++ b/Zend/tests/each_002.phpt @@ -0,0 +1,30 @@ +--TEST-- +Testing each() with array and object +--FILE-- +<?php + +$foo = each(new stdClass); +var_dump($foo); + +var_dump(each(new stdClass)); + +$a = array(new stdClass); +var_dump(each($a)); + + +?> +--EXPECTF-- +bool(false) +bool(false) +array(4) { + [1]=> + object(stdClass)#1 (0) { + } + ["value"]=> + object(stdClass)#1 (0) { + } + [0]=> + int(0) + ["key"]=> + int(0) +} |