/** * @expectedException CM_Exception_Invalid * @expectedExceptionMessage Unsupported format */ public function testGetFormatUnsupportedFormat() { $path = DIR_TEST_DATA . 'img/test.tiff'; $image = new CM_File_Image($path); $image->getFormat(); }