Changeset 47331 for branches/4.0/tests/phpunit/tests/image/resize_gd.php
- Timestamp:
- 02/20/2020 05:43:23 PM (7 years ago)
- Location:
- branches/4.0
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/image/resize_gd.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
- Property svn:mergeinfo changed
/trunk merged: 30518,30520,30526,31253-31254,31257
- Property svn:mergeinfo changed
-
branches/4.0/tests/phpunit/tests/image/resize_gd.php
r29120 r47331 23 23 parent::setUp(); 24 24 } 25 26 /** 27 * Try resizing a php file (bad image) 28 * @ticket 6821 29 */ 30 public function test_resize_bad_image() { 31 32 $image = $this->resize_helper( DIR_TESTDATA.'/export/crazy-cdata.xml', 25, 25 ); 33 $this->assertInstanceOf( 'WP_Error', $image ); 34 $this->assertEquals( 'invalid_image', $image->get_error_code() ); 35 } 36 25 37 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)