php-src/ext/spl/tests/SplTempFileObject_constructor_basic.phpt
Ben Longden 675a0539db Tests for SplTempFileObject
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)
2010-06-15 10:50:53 +00:00

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) """
}