Changeset 31259
- Timestamp:
- 01/21/2015 06:57:17 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/functions.php
r29834 r31259 293 293 $this->markTestSkipped( 'jpeg support unavailable' ); 294 294 295 $file = wp_crop_image( 'http://asdftestblog1.files.wordpress.com/2008/04/canola.jpg', 295 if ( ! extension_loaded( 'openssl' ) ) { 296 $this->markTestSkipped( 'Tests_Image_Functions::test_wp_crop_image_url() requires openssl.' ); 297 } 298 299 $file = wp_crop_image( 'https://asdftestblog1.files.wordpress.com/2008/04/canola.jpg', 296 300 0, 0, 100, 100, 100, 100, false, 297 301 DIR_TESTDATA . '/images/' . rand_str() . '.jpg' ); … … 313 317 314 318 public function test_wp_crop_image_url_not_exist() { 315 $file = wp_crop_image( 'http://asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg', 319 if ( ! extension_loaded( 'openssl' ) ) { 320 $this->markTestSkipped( 'Tests_Image_Functions::test_wp_crop_image_url_not_exist() requires openssl.' ); 321 } 322 323 $file = wp_crop_image( 'https://asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg', 316 324 0, 0, 100, 100, 100, 100 ); 317 325 $this->assertInstanceOf( 'WP_Error', $file );
Note: See TracChangeset
for help on using the changeset viewer.