Make WordPress Core

Changeset 35345


Ignore:
Timestamp:
10/21/2015 10:10:43 PM (9 years ago)
Author:
johnbillion
Message:

Provide a more helpful failure message when Imagick isn't installed. Skipping the tests isn't really an option because Imagick's presence affects several other tests too.

See #34087

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/image/intermediate_size.php

    r35309 r35345  
    66 */
    77class Tests_Image_Intermediate_Size extends WP_UnitTestCase {
     8
     9    function setUp() {
     10        parent::setUp();
     11        if ( ! extension_loaded( 'imagick' ) ) {
     12            $this->fail( 'The Imagick extension is not installed.' );
     13        }
     14    }
     15
    816    function tearDown() {
    917        $this->remove_added_uploads();
Note: See TracChangeset for help on using the changeset viewer.