1--TEST--
2SPL: Spl File Info test getExtension with leading dot
3--FILE--
4<?php
5$file = __DIR__ . '/.test';
6touch($file);
7$fileInfo = new SplFileInfo($file);
8
9var_dump($fileInfo->getExtension());
10unlink($file);
11?>
12--EXPECT--
13string(4) "test"
14