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

1.1     ! misho       1: --TEST--
        !             2: SPL: RegexIterator::getPregFlags()
        !             3: --CREDITS--
        !             4: Lance Kesson jac_kesson@hotmail.com
        !             5: #testfest London 2009-05-09
        !             6: --FILE--
        !             7: <?php
        !             8: 
        !             9: class myIterator implements Iterator {
        !            10: 
        !            11: function current (){}
        !            12: function key ( ){}
        !            13: function next ( ){}
        !            14: function rewind ( ){}
        !            15: function valid ( ){}
        !            16: 
        !            17: 
        !            18: }
        !            19: 
        !            20: class TestRegexIterator extends RegexIterator{}
        !            21: 
        !            22: $rege = '/^a/';
        !            23: 
        !            24: 
        !            25: $r = new TestRegexIterator(new myIterator, $rege);
        !            26: 
        !            27: $r->setPregFlags(PREG_OFFSET_CAPTURE);
        !            28: 
        !            29: echo is_long($r->getPregFlags());
        !            30: 
        !            31: ?>
        !            32: --EXPECTF--
        !            33: 1

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