1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-07-31 21:40:12 +02:00

correcting test

This commit is contained in:
Mikael Roos
2015-10-26 21:09:32 +01:00
parent 0efcfd5bc7
commit f9a4205579
2 changed files with 12 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ class CImageSRGBTest extends \PHPUnit_Framework_TestCase
{
private $srgbDir = "srgb";
private $cache;
private $srgbColorProfile = __DIR__ . '/../icc/sRGB_IEC61966-2-1_black_scaled.icc';
private $srgbColorProfile;
@@ -18,6 +18,7 @@ class CImageSRGBTest extends \PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->srgbColorProfile = __DIR__ . '/../icc/sRGB_IEC61966-2-1_black_scaled.icc';
$this->cache = CACHE_PATH . "/" . $this->srgbDir;
if (!is_writable($this->cache)) {
@@ -44,7 +45,7 @@ class CImageSRGBTest extends \PHPUnit_Framework_TestCase
);
if (class_exists("Imagick")) {
$this->assertEquals("car.png", basename($filename), "Filename not as expected on image.");
$this->assertEquals("srgb_car.png", basename($filename), "Filename not as expected on image.");
} else {
$this->assertFalse($filename, "ImageMagick not installed, silent fail");
}