Annotation of embedaddon/php/Zend/tests/each_002.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Testing each() with array and object
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: $foo = each(new stdClass);
        !             7: var_dump($foo);
        !             8: 
        !             9: var_dump(each(new stdClass));
        !            10: 
        !            11: $a = array(new stdClass);
        !            12: var_dump(each($a));
        !            13: 
        !            14: 
        !            15: ?>
        !            16: --EXPECTF--
        !            17: bool(false)
        !            18: bool(false)
        !            19: array(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: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>