Changeset 42343 for trunk/tests/phpunit/tests/image/resizeGd.php
- Timestamp:
- 11/30/2017 11:09:33 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/resizeGd.php
r41261 r42343 13 13 /** 14 14 * Use the GD image editor engine 15 * 15 16 * @var string 16 17 */ … … 26 27 /** 27 28 * Try resizing a php file (bad image) 29 * 28 30 * @ticket 6821 29 31 */ 30 32 public function test_resize_bad_image() { 31 33 32 $image = $this->resize_helper( DIR_TESTDATA .'/export/crazy-cdata.xml', 25, 25 );34 $image = $this->resize_helper( DIR_TESTDATA . '/export/crazy-cdata.xml', 25, 25 ); 33 35 $this->assertInstanceOf( 'WP_Error', $image ); 34 36 $this->assertEquals( 'invalid_image', $image->get_error_code() );
Note: See TracChangeset
for help on using the changeset viewer.