summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplTempFileObject_constructor_error.phpt
blob: 212a4df2ff8ad91e4164be5f4f8b4c9a8d56bc6e (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 (TypeError $e) {
    echo $e->getMessage(), "\n";
}
?>
--EXPECT--
SplTempFileObject::__construct(): Argument #1 ($maxMemory) must be of type int, string given