diff options
Diffstat (limited to 'ext/spl/tests/SplFixedArray_setSize_param_null.phpt')
-rw-r--r-- | ext/spl/tests/SplFixedArray_setSize_param_null.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/spl/tests/SplFixedArray_setSize_param_null.phpt b/ext/spl/tests/SplFixedArray_setSize_param_null.phpt new file mode 100644 index 0000000..ddb37be --- /dev/null +++ b/ext/spl/tests/SplFixedArray_setSize_param_null.phpt @@ -0,0 +1,13 @@ +--TEST-- +SplFixedArray::setSize() with a null parameter +--CREDITS-- +PHPNW Testfest 2009 - Adrian Hardy +--FILE-- +<?php +$fixed_array = new SplFixedArray(2); +$fixed_array->setSize(null); +var_dump($fixed_array); +?> +--EXPECT-- +object(SplFixedArray)#1 (0) { +} |