public function testGetExtension() { $file = 'picture-of-kittens.jpg'; $this->assertEquals('jpg', Library::getExtension($file)); $empty = '/path/to/noext'; $this->assertEquals('', Library::getExtension($empty)); }