SplFixedArray_offsetExists_invalid_parameter.phpt 337 B

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