Index: tests/phpunit/tests/image/editor_imagick.php
===================================================================
--- tests/phpunit/tests/image/editor_imagick.php	(revision 30548)
+++ tests/phpunit/tests/image/editor_imagick.php	(working copy)
@@ -461,7 +461,6 @@
 	 */
 	public function test_image_preserves_alpha_on_resize() {
 		$file = DIR_TESTDATA . '/images/transparent.png';
-
 		$editor = wp_get_image_editor( $file );
 
 		$this->assertNotInstanceOf( 'WP_Error', $editor );
@@ -472,8 +471,12 @@
 
 		$editor->save( $save_to_file );
 
-		$this->assertImageAlphaAtPoint( $save_to_file, array( 0,0 ), 127 );
+		$im = new Imagick( $save_to_file );
+		$pixel = $im->getImagePixelColor( 0, 0 );
+		$expected = $pixel->getColorValue(imagick::COLOR_ALPHA);
 
+		$this->assertImageAlphaAtPoint( $save_to_file, array( 0, 0 ), $expected );
+
 		unlink( $save_to_file );
 	}
 
@@ -484,19 +487,19 @@
 	 */
 	public function test_image_preserves_alpha() {
 		$file = DIR_TESTDATA . '/images/transparent.png';
-
 		$editor = wp_get_image_editor( $file );
-
 		$this->assertNotInstanceOf( 'WP_Error', $editor );
 
 		$editor->load();
-
 		$save_to_file = tempnam( get_temp_dir(), '' ) . '.png';
-
 		$editor->save( $save_to_file );
 
-		$this->assertImageAlphaAtPoint( $save_to_file, array( 0,0 ), 127 );
+		$im = new Imagick( $save_to_file );
+		$pixel = $im->getImagePixelColor( 0, 0 );
+		$expected = $pixel->getColorValue( imagick::COLOR_ALPHA );
 
+		$this->assertImageAlphaAtPoint( $save_to_file, array( 0,0 ), $expected );
+
 		unlink( $save_to_file );
 	}
 }
Index: tests/phpunit/tests/image/base.php
===================================================================
--- tests/phpunit/tests/image/base.php	(revision 30548)
+++ tests/phpunit/tests/image/base.php	(working copy)
@@ -42,13 +42,11 @@
 	 * @param  array $point      array(x,y)
 	 * @param  int $alpha
 	 */
-	protected function assertImageAlphaAtPoint( $image_path, $point, $alpha ) {
-		$im = imagecreatefrompng( $image_path );
-		$rgb = imagecolorat( $im, $point[0], $point[1] );
-
-		$colors = imagecolorsforindex( $im, $rgb );
-
-		$this->assertEquals( $alpha, $colors['alpha'] );
+	protected function assertImageAlphaAtPoint( $image_path, $point, $expected ) {
+		$im = new Imagick( $image_path );
+		$pixel = $im->getImagePixelColor( $point[0], $point[1] );
+		$color = $pixel->getColorValue(imagick::COLOR_ALPHA);		
+		$this->assertEquals( $expected, $color );
 	}
 
 	/**
