Annotation of embedaddon/php/tests/classes/iterators_005.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: ZE2 iterators cannot implement Traversable alone
        !             3: --SKIPIF--
        !             4: <?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
        !             5: --FILE--
        !             6: <?php
        !             7: 
        !             8: class test implements Traversable {
        !             9: }
        !            10: 
        !            11: $obj = new test;
        !            12: 
        !            13: foreach($obj as $v);
        !            14: 
        !            15: print "Done\n";
        !            16: /* the error doesn't show the filename but 'Unknown' */
        !            17: ?>
        !            18: --EXPECTF--
        !            19: Fatal error: Class test must implement interface Traversable as part of either Iterator or IteratorAggregate in %s on line %d

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