=')) { echo 'SKIP'; exit(0); } $dir = realpath(dirname(__FILE__)); $file = $dir . DIRECTORY_SEPARATOR . 'dummy.pdf'; $img = new Imagick(); if ($img->readImage($file) !== True) { echo 'FAIL: newImage()'; exit(1); } echo 'OK';