/** * @ticket WOBS-1189 * @expectedException RuntimeException */ public function testGetImageSizeWrongImage() { $tmp = tempnam(APPLICATION_PATH . '/../images/', 'phpunit'); file_put_contents($tmp, ''); $image = new LocalImage(basename($tmp)); $image->getWidth(); }