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-06-10 01:16:11 +02:00
|
|
|
parent::setUp();
|
2015-09-15 04:52:02 +02:00
|
|
|
|
2015-07-16 12:12:15 +02:00
|
|
|
if(!extension_loaded("gd")) {
|
2015-09-15 04:52:02 +02:00
|
|
|
$this->markTestSkipped("The GD extension is required");
|
2015-07-16 12:12:15 +02:00
|
|
|
return;
|
2015-09-15 04:52:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|