summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplTempFileObject_constructor_maxmemory_basic.phpt
blob: 765635f5307acda0105e8fa3d6307b96ab320edf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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) """
}