2012-10-25 00:28:39 +02:00
|
|
|
<?php
|
2014-01-02 16:59:34 +01:00
|
|
|
|
2012-10-25 00:28:39 +02:00
|
|
|
class GDImageTest extends ImageTest {
|
2014-01-02 16:59:34 +01:00
|
|
|
|
2012-10-25 00:28:39 +02:00
|
|
|
public function setUp() {
|
2015-09-15 04:52:02 +02:00
|
|
|
$skip = !extension_loaded("gd");
|
|
|
|
if($skip) {
|
2012-10-25 00:28:39 +02:00
|
|
|
$this->skipTest = true;
|
|
|
|
}
|
2014-08-15 08:53:05 +02:00
|
|
|
|
2015-06-10 01:16:11 +02:00
|
|
|
parent::setUp();
|
2015-09-15 04:52:02 +02:00
|
|
|
|
|
|
|
if($skip) {
|
|
|
|
$this->markTestSkipped("The GD extension is required");
|
|
|
|
}
|
|
|
|
|
|
|
|
Config::inst()->update('Injector', 'Image_Backend', 'GDBackend');
|
2012-10-25 00:28:39 +02:00
|
|
|
}
|
2014-01-02 16:59:34 +01:00
|
|
|
|
|
|
|
public function tearDown() {
|
|
|
|
$cache = SS_Cache::factory('GDBackend_Manipulations');
|
|
|
|
$cache->clean(Zend_Cache::CLEANING_MODE_ALL);
|
|
|
|
parent::tearDown();
|
|
|
|
}
|
2012-10-25 00:28:39 +02:00
|
|
|
}
|