Changeset 42343 for trunk/tests/phpunit/tests/image/base.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/base.php
r31622 r42343 13 13 14 14 if ( ! call_user_func( array( $this->editor_engine, 'test' ) ) ) { 15 $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system', $this->editor_engine) );15 $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system', $this->editor_engine ) ); 16 16 } 17 17 … … 29 29 /** 30 30 * Override the image editor engine 31 * 31 32 * @return string 32 33 */ … … 43 44 */ 44 45 protected function assertImageAlphaAtPointGD( $image_path, $point, $alpha ) { 45 $im = imagecreatefrompng( $image_path );46 $im = imagecreatefrompng( $image_path ); 46 47 $rgb = imagecolorat( $im, $point[0], $point[1] ); 47 48 … … 59 60 */ 60 61 protected function assertImageAlphaAtPointImagick( $image_path, $point, $expected ) { 61 $im = new Imagick( $image_path );62 $im = new Imagick( $image_path ); 62 63 $pixel = $im->getImagePixelColor( $point[0], $point[1] ); 63 64 $color = $pixel->getColorValue( imagick::COLOR_ALPHA ); … … 73 74 */ 74 75 protected function assertImageDimensions( $filename, $width, $height ) { 75 $detected_width = 0;76 $detected_width = 0; 76 77 $detected_height = 0; 77 $image_size = @getimagesize( $filename );78 $image_size = @getimagesize( $filename ); 78 79 79 80 if ( isset( $image_size[0] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.