silverstripe-framework/tests/model/ImagickImageTest.php

19 lines
354 B
PHP
Raw Normal View History

<?php
class ImagickImageTest extends ImageTest {
public function setUp() {
$skip = !extension_loaded("imagick");
if($skip) {
$this->skipTest = true;
}
2014-08-15 08:53:05 +02:00
parent::setUp();
if($skip) {
$this->markTestSkipped("The Imagick extension is not available.");
}
Config::inst()->update('Injector', 'Image_Backend', 'ImagickBackend');
}
}