xref: /PHP-5.3/Zend/tests/each_002.phpt (revision cf0708dc)
1--TEST--
2Testing each() with array and object
3--FILE--
4<?php
5
6$foo = each(new stdClass);
7var_dump($foo);
8
9var_dump(each(new stdClass));
10
11$a = array(new stdClass);
12var_dump(each($a));
13
14
15?>
16--EXPECTF--
17bool(false)
18bool(false)
19array(4) {
20  [1]=>
21  object(stdClass)#1 (0) {
22  }
23  ["value"]=>
24  object(stdClass)#1 (0) {
25  }
26  [0]=>
27  int(0)
28  ["key"]=>
29  int(0)
30}
31