Changeset 52010 for trunk/tests/phpunit/tests/image/functions.php
- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/functions.php
r51568 r52010 46 46 } 47 47 48 function test_is_image_positive() {48 public function test_is_image_positive() { 49 49 // These are all image files recognized by PHP. 50 50 $files = array( … … 76 76 } 77 77 78 function test_is_image_negative() {78 public function test_is_image_negative() { 79 79 // These are actually image files but aren't recognized or usable by PHP. 80 80 $files = array( … … 89 89 } 90 90 91 function test_is_displayable_image_positive() {91 public function test_is_displayable_image_positive() { 92 92 // These are all usable in typical web browsers. 93 93 $files = array( … … 123 123 } 124 124 125 function test_is_displayable_image_negative() {125 public function test_is_displayable_image_negative() { 126 126 // These are image files but aren't suitable for web pages because of compatibility or size issues. 127 127 $files = array( … … 148 148 * @ticket 50833 149 149 */ 150 function test_is_gd_image_invalid_types() {150 public function test_is_gd_image_invalid_types() { 151 151 $this->assertFalse( is_gd_image( new stdClass() ) ); 152 152 $this->assertFalse( is_gd_image( array() ) ); … … 162 162 * @requires extension gd 163 163 */ 164 function test_is_gd_image_valid_types() {164 public function test_is_gd_image_valid_types() { 165 165 $this->assertTrue( is_gd_image( imagecreate( 5, 5 ) ) ); 166 166 } … … 427 427 } 428 428 429 function mock_image_editor( $editors ) {429 public function mock_image_editor( $editors ) { 430 430 return array( 'WP_Image_Editor_Mock' ); 431 431 } … … 639 639 } 640 640 641 function filter_fallback_intermediate_image_sizes( $fallback_sizes, $metadata ) {641 public function filter_fallback_intermediate_image_sizes( $fallback_sizes, $metadata ) { 642 642 // Add the 'test-size' to the list of fallback sizes. 643 643 $fallback_sizes[] = 'test-size';
Note: See TracChangeset
for help on using the changeset viewer.