From 513b8c8e6da3f486d3a3c9e02f7b640c1ef280de Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Thu, 30 Jan 2025 16:58:07 +0100 Subject: [PATCH] Add more detailed assertion message --- tests/BaseTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/BaseTestCase.php b/tests/BaseTestCase.php index 2010d474..17c4b2ad 100644 --- a/tests/BaseTestCase.php +++ b/tests/BaseTestCase.php @@ -100,7 +100,7 @@ abstract class BaseTestCase extends MockeryTestCase { $this->assertInstanceOf(RgbColor::class, $color); $channel = $color->channel(Alpha::class); - $this->assertEquals(0, $channel->value()); + $this->assertEquals(0, $channel->value(), 'Detected color ' . $color . ' is not completely transparent.'); } protected function assertMediaType(string|array $allowed, string|EncodedImage $input): void