/** * @expectedException Nette\ArgumentOutOfRangeException */ public function testExtToTypeInvalidType() { Image::extToType("foo"); }