mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
13 lines
297 B
PHP
13 lines
297 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 parameter 1 to be int, string given
|