diff options
Diffstat (limited to 'ext/spl/tests/SplFixedArray_getSize_pass_param.phpt')
-rw-r--r-- | ext/spl/tests/SplFixedArray_getSize_pass_param.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/spl/tests/SplFixedArray_getSize_pass_param.phpt b/ext/spl/tests/SplFixedArray_getSize_pass_param.phpt new file mode 100644 index 0000000..ef4f40c --- /dev/null +++ b/ext/spl/tests/SplFixedArray_getSize_pass_param.phpt @@ -0,0 +1,12 @@ +--TEST-- +SplFixedArray::getSize() pass a parameter when none are expected +--CREDITS-- +PHPNW Testfest 2009 - Adrian Hardy +--FILE-- +<?php +$fixed_array = new SplFixedArray(2); +echo "*test* ".$fixed_array->getSize(3); +?> +--EXPECTF-- +Warning: SplFixedArray::getSize() expects exactly 0 parameters, 1 given in %s on line %d +*test* |