1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 08:42:29 +01:00
Files
archived-php-src/ext/spl/tests/SplTempFileObject_constructor_error.phpt
2015-05-16 16:49:14 -05:00

13 lines
302 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";
}
?>
--EXPECTF--
SplTempFileObject::__construct() expects parameter 1 to be integer, string given