Changeset 47338 for branches/3.8/tests/phpunit/tests/image/editor_gd.php
- Timestamp:
- 02/21/2020 01:05:39 PM (6 years ago)
- Location:
- branches/3.8
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/image/editor_gd.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8
- Property svn:mergeinfo changed
-
branches/3.8/tests/phpunit/tests/image/editor_gd.php
r25002 r47338 7 7 * @group wp-image-editor-gd 8 8 */ 9 require_once( dirname( __FILE__ ) . '/base.php' ); 9 10 10 11 class Tests_Image_Editor_GD extends WP_Image_UnitTestCase { … … 14 15 require_once( ABSPATH . WPINC . '/class-wp-image-editor.php' ); 15 16 require_once( ABSPATH . WPINC . '/class-wp-image-editor-gd.php' ); 17 16 18 parent::setUp(); 19 } 20 21 public function tearDown() { 22 $folder = DIR_TESTDATA . '/images/waffles-*.jpg'; 23 24 foreach ( glob( $folder ) as $file ) { 25 unlink( $file ); 26 } 27 28 $this->remove_added_uploads(); 29 30 parent::tearDown(); 17 31 } 18 32 … … 135 149 $this->assertImageAlphaAtPoint( $save_to_file, array( 0,0 ), 127 ); 136 150 151 unlink( $save_to_file ); 137 152 } 138 153 … … 154 169 155 170 $this->assertImageAlphaAtPoint( $save_to_file, array( 0,0 ), 127 ); 171 172 unlink( $save_to_file ); 156 173 } 157 174
Note: See TracChangeset
for help on using the changeset viewer.