Annotation of embedaddon/php/ext/spl/tests/arrayObject_getFlags_basic1.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SPL: ArrayObject::getFlags() basic usage
3: --FILE--
4: <?php
5: $ao = new ArrayObject(new ArrayObject(new stdClass));
6: var_dump($ao->getFlags());
7:
8: $ao = new ArrayObject(new ArrayObject(array(1,2,3)), ArrayObject::STD_PROP_LIST);
9: var_dump($ao->getFlags());
10:
11: $ao = new ArrayObject(new ArrayIterator(new ArrayObject()), ArrayObject::ARRAY_AS_PROPS);
12: var_dump($ao->getFlags());
13:
14: $ao = new ArrayObject(new ArrayObject(), ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS);
15: var_dump($ao->getFlags());
16:
17: $cao = clone $ao;
18: var_dump($cao->getFlags());
19: ?>
20: --EXPECTF--
21: int(0)
22: int(1)
23: int(2)
24: int(3)
25: int(3)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>