summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplTempFileObject_constructor_basic.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/SplTempFileObject_constructor_basic.phpt')
-rw-r--r--ext/spl/tests/SplTempFileObject_constructor_basic.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/spl/tests/SplTempFileObject_constructor_basic.phpt b/ext/spl/tests/SplTempFileObject_constructor_basic.phpt
new file mode 100644
index 000000000..b2e640c7a
--- /dev/null
+++ b/ext/spl/tests/SplTempFileObject_constructor_basic.phpt
@@ -0,0 +1,19 @@
+--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) """
+}