summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplTempFileObject_constructor_error.phpt
blob: 8eb306689d1273ed5947e27238dbfbb5c18d3667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
SPL SplTempFileObject constructor sets correct defaults when pass 0 arguments
--FILE--
<?php
try {
    new SplTempFileObject('invalid');
} catch (TypeException $e) {
    echo $e->getMessage(), "\n";
}
?>
--EXPECTF--
SplTempFileObject::__construct() expects parameter 1 to be integer, string given