php-src/ext/spl/tests/SplTempFileObject_constructor_maxmemory_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
530 B
PHP

--TEST--
SPL SplTempFileObject constructor sets correct values when passed fixed memory size
--FILE--
<?php
var_dump(new SplTempFileObject(1024));
?>
--EXPECT--
object(SplTempFileObject)#1 (5) {
["pathName":"SplFileInfo":private]=>
string(25) "php://temp/maxmemory:1024"
["fileName":"SplFileInfo":private]=>
string(25) "php://temp/maxmemory:1024"
["openMode":"SplFileObject":private]=>
string(1) "w"
["delimiter":"SplFileObject":private]=>
string(1) ","
["enclosure":"SplFileObject":private]=>
string(1) """
}