Changeset 47122 for trunk/tests/phpunit/tests/image/resize.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/resize.php
r46586 r47122 42 42 $image = $this->resize_helper( DIR_TESTDATA . '/images/test-image.png', 25, 25 ); 43 43 44 if ( ! is_string( $image ) ) { // WP_Error, stop GLib-GObject-CRITICAL assertion 44 if ( ! is_string( $image ) ) { // WP_Error, stop GLib-GObject-CRITICAL assertion. 45 45 $this->fail( sprintf( 'No PNG support in the editor engine %s on this system', $this->editor_engine ) ); 46 46 } … … 58 58 $image = $this->resize_helper( DIR_TESTDATA . '/images/test-image.gif', 25, 25 ); 59 59 60 if ( ! is_string( $image ) ) { // WP_Error, stop GLib-GObject-CRITICAL assertion 60 if ( ! is_string( $image ) ) { // WP_Error, stop GLib-GObject-CRITICAL assertion. 61 61 $this->fail( sprintf( 'No GIF support in the editor engine %s on this system', $this->editor_engine ) ); 62 62 } … … 72 72 73 73 function test_resize_larger() { 74 // image_resize() should refuse to make an image larger 74 // image_resize() should refuse to make an image larger. 75 75 $image = $this->resize_helper( DIR_TESTDATA . '/images/test-image.jpg', 100, 100 ); 76 76
Note: See TracChangeset
for help on using the changeset viewer.