public function testGetFileInfo()
{
$test = FileHelper::getFileInfo('/path/to/myfile.png');
$this->assertSame('png', $test->extension);
$this->assertSame('myfile', $test->name);
$test = FileHelper::getFileInfo('/path/to/myfile.');
$this->assertSame(false, $test->extension);
$this->assertSame('myfile', $test->name);
$test = FileHelper::getFileInfo('/path/to/myfile');
$this->assertSame(false, $test->extension);
$this->assertSame('myfile', $test->name);
$test = FileHelper::getFileInfo('/path/to/');
$this->assertSame(false, $test->extension);
$this->assertSame('to', $test->name);
}