Changeset 498 in tests
- Timestamp:
- 01/31/2012 09:50:59 PM (13 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_image.php
r408 r498 443 443 class TestImageResize extends WPTestCase { 444 444 // image_resize( $file, $max_w, $max_h, $crop=false, $suffix=null, $dest_path=null, $jpeg_quality=75) 445 446 function setUp() { 447 $this->checkPHPExtension('gd'); 448 parent::setUp(); 449 } 445 450 446 451 function test_resize_jpg() { -
wp-testlib/base.php
r477 r498 450 450 } 451 451 452 /** 453 * Skips the current test the given PHP extension is not loaded 454 * @param string $ext the PHP extension name to check 455 * @return void 456 */ 457 function checkPHPExtension($ext) { 458 if ( !extension_loaded($ext) ) { 459 $this->markTestSkipped("The $ext PHP extension is not loaded."); 460 } 461 } 452 462 453 463 // convenience function: return the # of posts associated with a tag
Note: See TracChangeset
for help on using the changeset viewer.