Annotation of embedaddon/php/ext/spl/tests/SplFixedArray_offsetGet_invalid_parameter.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: SPL FixedArray offsetGet throws error on no parameter
                      3: --CREDITS--
                      4: PHPNW TestFest 2009 - Ben Longden
                      5: --FILE--
                      6: <?php
                      7: $array = new SplFixedArray(5);
                      8: $array[0] = 'a';
                      9: $a = $array->offsetGet();
                     10: if(is_null($a)) {
                     11:        echo 'PASS';
                     12: }
                     13: ?>
                     14: --EXPECTF--
                     15: Warning: SplFixedArray::offsetGet() expects exactly 1 parameter, 0 given in %s on line %d
                     16: PASS

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