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

1.1     ! misho       1: --TEST--
        !             2: Create a SplFixedArray from an array using the fromArray() function use the default behaviour of preserve the indexes.
        !             3: --CREDITS--
        !             4: Philip Norton philipnorton42@gmail.com
        !             5: --FILE--
        !             6: <?php
        !             7: $array = SplFixedArray::fromArray(array(1 => 1, 
        !             8:                                                                                2 => '2',
        !             9:                                                                                3 => false));
        !            10: var_dump($array);
        !            11: ?>
        !            12: --EXPECTF--
        !            13: object(SplFixedArray)#1 (4) {
        !            14:   [0]=>
        !            15:   NULL
        !            16:   [1]=>
        !            17:   int(1)
        !            18:   [2]=>
        !            19:   %string|unicode%(1) "2"
        !            20:   [3]=>
        !            21:   bool(false)
        !            22: }

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