php-src/ext/spl/tests/SplFixedArray_count_param_int.phpt
2009-05-23 15:38:18 +00:00

11 lines
323 B
PHP

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