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

--TEST--
SPL SplTempFileObject constructor sets correct values when passed fixed memory size
--FILE--
<?php
var_dump(new SplTempFileObject(1024));
?>
--EXPECTF--
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) """
}