mirror of
https://github.com/mosbth/cimage.git
synced 2025-07-31 21:40:12 +02:00
correcting test
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user