- Timestamp:
- 02/21/2020 01:05:39 PM (5 years ago)
- Location:
- branches/3.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8
- Property svn:mergeinfo changed
-
branches/3.8/tests/phpunit/tests/image/editor_imagick.php
r25002 r47338 7 7 * @group wp-image-editor-imagick 8 8 */ 9 require_once( dirname( __FILE__ ) . '/base.php' ); 9 10 10 11 class Tests_Image_Editor_Imagick extends WP_Image_UnitTestCase { … … 22 23 23 24 parent::setUp(); 25 } 26 27 public function tearDown() { 28 $folder = DIR_TESTDATA . '/images/waffles-*.jpg'; 29 30 foreach ( glob( $folder ) as $file ) { 31 unlink( $file ); 32 } 33 34 $this->remove_added_uploads(); 35 36 parent::tearDown(); 24 37 } 25 38 … … 143 156 $this->assertImageAlphaAtPoint( $save_to_file, array( 0,0 ), 127 ); 144 157 158 unlink( $save_to_file ); 145 159 } 146 160 … … 158 172 159 173 $save_to_file = tempnam( get_temp_dir(), '' ) . '.png'; 160 174 161 175 $editor->save( $save_to_file ); 162 176 163 177 $this->assertImageAlphaAtPoint( $save_to_file, array( 0,0 ), 127 ); 178 179 unlink( $save_to_file ); 164 180 } 165 181 }
Note: See TracChangeset
for help on using the changeset viewer.