summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplFixedArray__construct_param_array.phpt
blob: 89983c377e46a5d04b7cd3318253389b35cfd07e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
SplFixedArray::__construct() with array passed as integer.
--CREDITS--
PHPNW Test Fest 2009 - Jordan Hatch
--FILE--
<?php

try {
	$array = new SplFixedArray( array("string", 1) );
} catch (TypeError $iae) {
	echo "Ok - ".$iae->getMessage().PHP_EOL;
}

?>
--EXPECT--
Ok - SplFixedArray::__construct() expects parameter 1 to be int, array given