summaryrefslogtreecommitdiff
path: root/ext/spl/tests/fixedarray_009.phpt
blob: f255ed299a76368c4df1f789853c4cdf3d9d0d14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
SPL: FixedArray: Trying to instantiate passing string to construtor parameter
--FILE--
<?php

try {
	$a = new SplFixedArray('FOO');
} catch (TypeException $iae) {
	echo "Ok - ".$iae->getMessage().PHP_EOL;
}
?>
--EXPECTF--
Ok - SplFixedArray::__construct() expects parameter 1 to be integer, string given