- Timestamp:
- 02/20/2020 05:04:42 PM (5 years ago)
- Location:
- branches/3.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.9
-
branches/3.9/tests/phpunit/tests/image/editor_imagick.php
r27794 r47329 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 { … … 19 20 } 20 21 21 public function shutDown() {22 public function tearDown() { 22 23 $folder = DIR_TESTDATA . '/images/waffles-*.jpg'; 23 24 … … 26 27 } 27 28 28 parent::shutDown(); 29 $this->remove_added_uploads(); 30 31 parent::tearDown(); 29 32 } 30 33 … … 464 467 $editor->resize( 5, 5 ); 465 468 $save_to_file = tempnam( get_temp_dir(), '' ) . '.png'; 466 469 467 470 $editor->save( $save_to_file ); 468 471 469 472 $this->assertImageAlphaAtPoint( $save_to_file, array( 0,0 ), 127 ); 473 474 unlink( $save_to_file ); 470 475 } 471 476 … … 486 491 487 492 $this->assertImageAlphaAtPoint( $save_to_file, array( 0,0 ), 127 ); 493 494 unlink( $save_to_file ); 488 495 } 489 496 }
Note: See TracChangeset
for help on using the changeset viewer.