private function createFileInfo($path)
{
$file = $this->prophesize(\SplFileInfo::class)->reveal();
$file->isFile()->willReturn(true);
$file->getExtension()->willReturn(substr($path, -3));
$file->getFilename()->willReturn(basename($path));
return $file;
}