SplFixedArray_next_param.phpt 350 B

123456789101112131415161718
  1. --TEST--
  2. SplFixedArray::next() with a parameter. *BUG*
  3. --CREDITS--
  4. PHPNW Test Fest 2009 - Jordan Hatch
  5. --FILE--
  6. <?php
  7. $array = new SplFixedArray( 4 );
  8. $array[0] = "Hello";
  9. $array[1] = "world";
  10. $array[2] = "elePHPant";
  11. $array->next( "invalid" );
  12. ?>
  13. --EXPECTF--
  14. Warning: SplFixedArray::next() expects exactly 0 parameters, 1 given in %s on line %d