mirror of
https://github.com/ivuorinen/palette.git
synced 2026-03-14 18:02:03 +00:00
Better test name for black and red images
This commit is contained in:
@@ -14,7 +14,7 @@ class PaletteTest extends \PHPUnit_Framework_TestCase
|
|||||||
$this->assertInternalType('string', $palette->destination);
|
$this->assertInternalType('string', $palette->destination);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_known_images()
|
public function test_known_images_with_one_color()
|
||||||
{
|
{
|
||||||
$location = __DIR__ . DIRECTORY_SEPARATOR . 'assets' . DIRECTORY_SEPARATOR;
|
$location = __DIR__ . DIRECTORY_SEPARATOR . 'assets' . DIRECTORY_SEPARATOR;
|
||||||
$images = ['black.png' => '000000', 'red.png' => 'CC3333'];
|
$images = ['black.png' => '000000', 'red.png' => 'CC3333'];
|
||||||
@@ -26,7 +26,7 @@ class PaletteTest extends \PHPUnit_Framework_TestCase
|
|||||||
$palette = new \ivuorinen\Palette\Palette($image);
|
$palette = new \ivuorinen\Palette\Palette($image);
|
||||||
$this->assertCount(1, $palette->colorsArray);
|
$this->assertCount(1, $palette->colorsArray);
|
||||||
$this->assertArrayHasKey($hex, $palette->colorsArray);
|
$this->assertArrayHasKey($hex, $palette->colorsArray);
|
||||||
$this->assertEquals($image, $palette->filename);
|
$this->assertEquals($image, $palette->filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user