summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplFixedArray__construct_param_string.phpt
blob: 1c9a681e82a152b1f6a0b2fe4026751dec9ed73f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
SplFixedArray::__construct() with string passed as parameter.
--CREDITS--
PHPNW Test Fest 2009 - Jordan Hatch
--FILE--
<?php
try {
    $array = new SplFixedArray( "string" );
} catch (TypeError $iae) {
    echo "Ok - ".$iae->getMessage().PHP_EOL;
}


?>
--EXPECT--
Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, string given