mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
be239896d3
API Remove filesystem sync API to handle file manipulations
26 lines
486 B
PHP
26 lines
486 B
PHP
<?php
|
|
|
|
class GDImageTest extends ImageTest {
|
|
|
|
public function setUp() {
|
|
$skip = !extension_loaded("gd");
|
|
if($skip) {
|
|
$this->skipTest = true;
|
|
}
|
|
|
|
parent::setUp();
|
|
|
|
if($skip) {
|
|
$this->markTestSkipped("The GD extension is required");
|
|
}
|
|
|
|
Config::inst()->update('Injector', 'Image_Backend', 'GDBackend');
|
|
}
|
|
|
|
public function tearDown() {
|
|
$cache = SS_Cache::factory('GDBackend_Manipulations');
|
|
$cache->clean(Zend_Cache::CLEANING_MODE_ALL);
|
|
parent::tearDown();
|
|
}
|
|
}
|