Changeset 1182 in tests
- Timestamp:
- 01/04/2013 10:56:13 AM (13 years ago)
- Location:
- trunk/tests/image
- Files:
-
- 1 added
- 1 edited
-
base.php (modified) (1 diff)
-
editor_gd.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/image/base.php
r1157 r1182 31 31 return array( $this->editor_engine ); 32 32 } 33 34 /** 35 * Helper assertion for testing alpha on images 36 * 37 * @param string $image_path 38 * @param array $point array(x,y) 39 * @param int $alpha 40 */ 41 protected function assertImageAlphaAtPoint( $image_path, $point, $alpha ) { 42 43 $im = imagecreatefrompng( $image_path ); 44 $rgb = imagecolorat($im, $point[0], $point[1]); 45 46 $colors = imagecolorsforindex($im, $rgb); 47 48 $this->assertEquals( $alpha, $colors['alpha'] ); 49 } 33 50 }
Note: See TracChangeset
for help on using the changeset viewer.