Annotation of embedaddon/php/ext/spl/tests/arrayObject_getFlags_basic2.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SPL: ArrayObject::getFlags() - ensure flags are passed on to nested array objects and iterators.
! 3: --FILE--
! 4: <?php
! 5: $ao = new ArrayObject(array(), ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS);
! 6: var_dump($ao->getFlags());
! 7:
! 8: $ao2 = new ArrayObject($ao);
! 9: var_dump($ao2->getFlags());
! 10: var_dump($ao2->getIterator()->getFlags());
! 11:
! 12: $ai = new ArrayIterator($ao);
! 13: var_dump($ai->getFlags());
! 14:
! 15: $ao2 = new ArrayObject($ao, 0);
! 16: var_dump($ao2->getFlags());
! 17:
! 18: ?>
! 19: --EXPECTF--
! 20: int(3)
! 21: int(3)
! 22: int(3)
! 23: int(3)
! 24: int(0)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>