Annotation of embedaddon/php/ext/spl/tests/SplFixedArray_toArray_with-params.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Check that passing a parameter to toArray() produces a correct error
                      3: --CREDITS--
                      4: PHPNW Testfest 2009 - Paul Court ( g@rgoyle.com )
                      5: --FILE--
                      6: <?php
                      7:        // Create a fixed array
                      8:        $fixedArray = new SplFixedArray(5);
                      9:        
                     10:        // Fill it up
                     11:        for ($i=0; $i < 5; $i++) { 
                     12:                $fixedArray[$i] = "PHPNW Testfest";
                     13:        }
                     14:        
                     15:        // Test count() returns correct error when parameters are passed.
                     16:        $fixedArray->count(1);
                     17: ?>
                     18: --EXPECTF--
                     19: Warning: SplFixedArray::count() expects exactly 0 parameters, %d given in %s on line %d

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