SplFixedArray_count_param_int.phpt 323 B

1234567891011
  1. --TEST--
  2. Creates array, uses the count function to get the size of the array, but passes a parameter.
  3. --CREDITS--
  4. Philip Norton philipnorton42@gmail.com
  5. --FILE--
  6. <?php
  7. $array = new SplFixedArray(5);
  8. echo $array->count(3);
  9. ?>
  10. --EXPECTF--
  11. Warning: SplFixedArray::count() expects exactly 0 parameters, 1 given in %s on line %d