Lines Matching refs:SplFileInfo
2 SPL: SplFileInfo::getBasename() basic test
6 echo (new \SplFileInfo('/path/to/a.txt'))->getBasename() . PHP_EOL;
7 echo (new \SplFileInfo('path/to/b'))->getBasename() . PHP_EOL;
8 echo (new \SplFileInfo('c.txt'))->getBasename() . PHP_EOL;
9 echo (new \SplFileInfo('d'))->getBasename() . PHP_EOL;
10 echo (new \SplFileInfo('~/path/to//e'))->getBasename() . PHP_EOL . PHP_EOL;
13 echo (new \SplFileInfo('path/to/a.txt'))->getBasename('.txt') . PHP_EOL;
14 echo (new \SplFileInfo('path/to/bbb.txt'))->getBasename('b.txt') . PHP_EOL;
15 echo (new \SplFileInfo('path/to/ccc.txt'))->getBasename('to/ccc.txt') . PHP_EOL;
16 echo (new \SplFileInfo('d.txt'))->getBasename('txt') . PHP_EOL;
17 echo (new \SplFileInfo('e.txt'))->getBasename('e.txt') . PHP_EOL;
18 echo (new \SplFileInfo('f'))->getBasename('.txt');