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


git-svn-id: https://develop.svn.wordpress.org/trunk@35345 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2015-10-21 22:10:43 +00:00
parent 289973f078
commit 63748f2d67

View File

@ -5,6 +5,14 @@
* @group upload
*/
class Tests_Image_Intermediate_Size extends WP_UnitTestCase {
function setUp() {
parent::setUp();
if ( ! extension_loaded( 'imagick' ) ) {
$this->fail( 'The Imagick extension is not installed.' );
}
}
function tearDown() {
$this->remove_added_uploads();
parent::tearDown();