Annotation of embedaddon/php/ext/spl/tests/iterator_058.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: SPL: Iterator::__construct(void)
        !             3: --CREDITS--
        !             4: Sebastian Schürmann
        !             5: --FILE--
        !             6: <?php
        !             7: class myIterator implements Iterator {
        !             8:        
        !             9:        function current() {}
        !            10:        function next() {}
        !            11:        function key() {}       
        !            12:        function valid() {}
        !            13:        function rewind() {}
        !            14:        
        !            15: }
        !            16: try {
        !            17:        $it = new myIterator(); 
        !            18: } catch (InvalidArgumentException $e) {
        !            19:        echo 'InvalidArgumentException thrown';
        !            20: }
        !            21: echo 'no Exception thrown';
        !            22: ?>
        !            23: --EXPECT--
        !            24: no Exception thrown

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