From 6dfc55907939693e9482a9185e60219422b4ed2a Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 14 Sep 2017 14:20:31 +0300 Subject: [PATCH] Better test name for black and red images --- tests/PaletteTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/PaletteTest.php b/tests/PaletteTest.php index 4e309f5..c8ff1fc 100644 --- a/tests/PaletteTest.php +++ b/tests/PaletteTest.php @@ -14,7 +14,7 @@ class PaletteTest extends \PHPUnit_Framework_TestCase $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; $images = ['black.png' => '000000', 'red.png' => 'CC3333']; @@ -26,7 +26,7 @@ class PaletteTest extends \PHPUnit_Framework_TestCase $palette = new \ivuorinen\Palette\Palette($image); $this->assertCount(1, $palette->colorsArray); $this->assertArrayHasKey($hex, $palette->colorsArray); - $this->assertEquals($image, $palette->filename); + $this->assertEquals($image, $palette->filename); } } }