Changeset 49024 for trunk/tests/phpunit/tests/image/functions.php
- Timestamp:
- 09/21/2020 11:34:06 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/image/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/functions.php
r49018 r49024 349 349 } 350 350 351 /** 352 * @requires function imagejpeg 353 */ 351 354 public function test_wp_crop_image_file() { 352 if ( ! function_exists( 'imagejpeg' ) ) {353 $this->fail( 'jpeg support unavailable' );354 }355 356 355 $file = wp_crop_image( 357 356 DIR_TESTDATA . '/images/canola.jpg', … … 373 372 } 374 373 374 /** 375 * @requires function imagejpeg 376 */ 375 377 public function test_wp_crop_image_url() { 376 if ( ! function_exists( 'imagejpeg' ) ) {377 $this->fail( 'jpeg support unavailable' );378 }379 380 378 if ( ! extension_loaded( 'openssl' ) ) { 381 379 $this->markTestSkipped( 'Tests_Image_Functions::test_wp_crop_image_url() requires openssl.' );
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)