Index: wp-includes/class-wp-image-editor-imagick.php
===================================================================
--- wp-includes/class-wp-image-editor-imagick.php	(revision 22510)
+++ wp-includes/class-wp-image-editor-imagick.php	(working copy)
@@ -34,7 +34,7 @@
 	 * @return boolean
 	 */
 	public static function test( $args = null ) {
-		if ( ! extension_loaded( 'imagick' ) )
+		if ( ! extension_loaded( 'imagick' ) || ! is_callable( 'Imagick', 'queryFormats' ) )
 			return false;
 
 		return true;
@@ -150,7 +150,7 @@
 		$imagick_extension = strtoupper( self::get_extension( $mime_type ) );
 
 		try {
-			return ( (bool) $this->image->queryFormats( $imagick_extension ) );
+			return ( (bool) Imagick::queryFormats( $imagick_extension ) );
 		}
 		catch ( Exception $e ) {
 			return false;
