Changeset 30549 for trunk/tests/phpunit/tests/image/editor_imagick.php
- Timestamp:
- 11/24/2014 08:56:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/editor_imagick.php
r29834 r30549 473 473 $editor->save( $save_to_file ); 474 474 475 $this->assertImageAlphaAtPoint( $save_to_file, array( 0,0 ), 127 ); 475 $im = new Imagick( $save_to_file ); 476 $pixel = $im->getImagePixelColor( 0, 0 ); 477 $expected = $pixel->getColorValue( imagick::COLOR_ALPHA ); 478 479 $this->assertImageAlphaAtPointImagick( $save_to_file, array( 0,0 ), $expected ); 476 480 477 481 unlink( $save_to_file ); … … 496 500 $editor->save( $save_to_file ); 497 501 498 $this->assertImageAlphaAtPoint( $save_to_file, array( 0,0 ), 127 ); 502 $im = new Imagick( $save_to_file ); 503 $pixel = $im->getImagePixelColor( 0, 0 ); 504 $expected = $pixel->getColorValue( imagick::COLOR_ALPHA ); 505 506 $this->assertImageAlphaAtPointImagick( $save_to_file, array( 0,0 ), $expected ); 499 507 500 508 unlink( $save_to_file );
Note: See TracChangeset
for help on using the changeset viewer.