/** * @covers ../../../src/Library/Helper/File::getExtension() */ public function test_getExtension() { $this->checkNoArg('getExtension', ''); $fn = 'My é Own.filename [2015] VOSTFR .txt'; $this->assertEquals('txt', \Library\Helper\File::getExtension($fn)); $this->assertEquals('.txt', \Library\Helper\File::getExtension($fn, true)); }