Annotation of embedaddon/php/ext/spl/tests/iterator_057.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SPL: ArrayIterator::__construct(void)
3: --CREDITS--
4: Sebastian Schürmann
5: --FILE--
6: <?php
7: /**
8: * From Docs: Construct a new array iterator from anything that has a hash table.
9: * NULL, NOTHING is not a hash table ;)
10: */
11: class myArrayIterator extends ArrayIterator {
12: }
13: try {
14: $it = new myArrayIterator();
15: } catch (InvalidArgumentException $e) {
16: echo 'InvalidArgumentException thrown';
17: }
18: echo 'no Exception thrown'
19: ?>
20: --EXPECT--
21: no Exception thrown
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>