1
0
mirror of https://github.com/php/php-src.git synced 2026-04-16 12:31:06 +02:00
Files
archived-php-src/ext/spl/tests/SplTempFileObject_constructor_error.phpt
Máté Kocsis ac0853eb26 Make type error messages more consistent
Closes GH-5092
2020-02-17 14:22:17 +01:00

13 lines
319 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() expects argument #1 ($max_memory) to be of type int, string given