mirror of
https://github.com/php/php-src.git
synced 2024-10-03 07:46:12 +00:00
675a0539db
Basic usage (no params) Basic usage (with max memory specified) Variation (passing a neg value to the constructor) Error (Passing a non long int value to constructor)
20 lines
491 B
PHP
20 lines
491 B
PHP
--TEST--
|
|
SPL SplTempFileObject constructor sets correct defaults when pass 0 arguments
|
|
--FILE--
|
|
<?php
|
|
var_dump(new SplTempFileObject());
|
|
?>
|
|
--EXPECTF--
|
|
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) """
|
|
}
|