Annotation of embedaddon/php/ext/intl/tests/resourcebundle_traversable.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #55610: ResourceBundle does not implement Traversable
        !             3: --SKIPIF--
        !             4: <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
        !             5: --FILE--
        !             6: <?php
        !             7:        include "resourcebundle.inc";
        !             8: 
        !             9:        $r = new ResourceBundle( 'es', BUNDLE );
        !            10: 
        !            11:        var_dump($r instanceof Traversable);
        !            12:        var_dump(iterator_to_array($r->get('testarray')));
        !            13: ?>
        !            14: --EXPECTF--
        !            15: bool(true)
        !            16: array(3) {
        !            17:   [0]=>
        !            18:   string(8) "cadena 1"
        !            19:   [1]=>
        !            20:   string(8) "cadena 2"
        !            21:   [2]=>
        !            22:   string(8) "cadena 3"
        !            23: }

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