php-8.0.30-src/ext/spl/tests/SplTempFileObject_construct...

13 lines
313 B
PHP

--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