1--TEST--
2SPL: SplFileInfo::_debugInfo() basic test
3--FILE--
4<?php
5// without $suffix
6var_dump(new \SplFileInfo('/path/to/a.txt'));
7var_dump(new \SplFileInfo('path/to/b'));
8var_dump(new \SplFileInfo('c.txt'));
9var_dump(new \SplFileInfo('d'));
10var_dump(new \SplFileInfo('~/path/to//e'));
11
12// with $suffix
13var_dump(new \SplFileInfo('path/to/a.txt'));
14var_dump(new \SplFileInfo('path/to/bbb.txt'));
15var_dump(new \SplFileInfo('path/to/ccc.txt'));
16var_dump(new \SplFileInfo('d.txt'));
17var_dump(new \SplFileInfo('e.txt'));
18var_dump(new \SplFileInfo('f'));
19?>
20--EXPECT--
21object(SplFileInfo)#1 (2) {
22  ["pathName":"SplFileInfo":private]=>
23  string(14) "/path/to/a.txt"
24  ["fileName":"SplFileInfo":private]=>
25  string(5) "a.txt"
26}
27object(SplFileInfo)#1 (2) {
28  ["pathName":"SplFileInfo":private]=>
29  string(9) "path/to/b"
30  ["fileName":"SplFileInfo":private]=>
31  string(1) "b"
32}
33object(SplFileInfo)#1 (2) {
34  ["pathName":"SplFileInfo":private]=>
35  string(5) "c.txt"
36  ["fileName":"SplFileInfo":private]=>
37  string(5) "c.txt"
38}
39object(SplFileInfo)#1 (2) {
40  ["pathName":"SplFileInfo":private]=>
41  string(1) "d"
42  ["fileName":"SplFileInfo":private]=>
43  string(1) "d"
44}
45object(SplFileInfo)#1 (2) {
46  ["pathName":"SplFileInfo":private]=>
47  string(12) "~/path/to//e"
48  ["fileName":"SplFileInfo":private]=>
49  string(1) "e"
50}
51object(SplFileInfo)#1 (2) {
52  ["pathName":"SplFileInfo":private]=>
53  string(13) "path/to/a.txt"
54  ["fileName":"SplFileInfo":private]=>
55  string(5) "a.txt"
56}
57object(SplFileInfo)#1 (2) {
58  ["pathName":"SplFileInfo":private]=>
59  string(15) "path/to/bbb.txt"
60  ["fileName":"SplFileInfo":private]=>
61  string(7) "bbb.txt"
62}
63object(SplFileInfo)#1 (2) {
64  ["pathName":"SplFileInfo":private]=>
65  string(15) "path/to/ccc.txt"
66  ["fileName":"SplFileInfo":private]=>
67  string(7) "ccc.txt"
68}
69object(SplFileInfo)#1 (2) {
70  ["pathName":"SplFileInfo":private]=>
71  string(5) "d.txt"
72  ["fileName":"SplFileInfo":private]=>
73  string(5) "d.txt"
74}
75object(SplFileInfo)#1 (2) {
76  ["pathName":"SplFileInfo":private]=>
77  string(5) "e.txt"
78  ["fileName":"SplFileInfo":private]=>
79  string(5) "e.txt"
80}
81object(SplFileInfo)#1 (2) {
82  ["pathName":"SplFileInfo":private]=>
83  string(1) "f"
84  ["fileName":"SplFileInfo":private]=>
85  string(1) "f"
86}
87