php-src/ext/spl/tests/SplTempFileObject_constructor_basic.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

20 lines
490 B
PHP

--TEST--
SPL SplTempFileObject constructor sets correct defaults when pass 0 arguments
--FILE--
<?php
var_dump(new SplTempFileObject());
?>
--EXPECT--
object(SplTempFileObject)#1 (5) {
["pathName":"SplFileInfo":private]=>
string(10) "php://temp"
["fileName":"SplFileInfo":private]=>
string(10) "php://temp"
["openMode":"SplFileObject":private]=>
string(1) "w"
["delimiter":"SplFileObject":private]=>
string(1) ","
["enclosure":"SplFileObject":private]=>
string(1) """
}