diff options
Diffstat (limited to 'ext/spl/tests/fixedarray_009.phpt')
| -rw-r--r-- | ext/spl/tests/fixedarray_009.phpt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/spl/tests/fixedarray_009.phpt b/ext/spl/tests/fixedarray_009.phpt new file mode 100644 index 0000000000..936d210a65 --- /dev/null +++ b/ext/spl/tests/fixedarray_009.phpt @@ -0,0 +1,10 @@ +--TEST-- +SPL: FixedArray: Trying to instantiate passing string to construtor parameter +--FILE-- +<?php + +$a = new SplFixedArray('FOO'); + +?> +--EXPECTF-- +Warning: SplFixedArray::__construct() expects parameter 1 to be long, string given in %s on line %d |
