1--TEST--
2SPL: SplFileInfo::getFilename() basic test
3--FILE--
4<?php
5
6echo (new \SplFileInfo('/path/to/a.txt'))->getFilename() . PHP_EOL;
7echo (new \SplFileInfo('path/to/b'))->getFilename() . PHP_EOL;
8echo (new \SplFileInfo('c.txt'))->getFilename() . PHP_EOL;
9echo (new \SplFileInfo('d'))->getFilename() . PHP_EOL;
10echo (new \SplFileInfo('~/path/to//e'))->getFilename() . PHP_EOL . PHP_EOL;
11
12?>
13--EXPECT--
14a.txt
15b
16c.txt
17d
18e
19