--TEST-- Imagick::readImage test --SKIPIF-- --FILE-- readImage('foo.jpg'); } catch (ImagickException $e) { echo "got exception"; } ?> --EXPECTF-- --- Catch exception with try/catch got exception