blob: d8daca9a33d9a0cb3088c8d4c21bdf93aceb3faf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--TEST--
Create an SplFixedArray using an SplFixedArray object.
--CREDITS--
Philip Norton philipnorton42@gmail.com
--FILE--
<?php
try {
$array = new SplFixedArray(new SplFixedArray(3));
} catch (TypeError $iae) {
echo "Ok - ".$iae->getMessage().PHP_EOL;
}
?>
--EXPECTF--
Ok - SplFixedArray::__construct() expects parameter 1 to be int, object given
|