1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-28 08:09:54 +02:00

Add more detailed assertion message

This commit is contained in:
Oliver Vogel
2025-01-30 16:58:07 +01:00
parent f6165cda94
commit 513b8c8e6d

View File

@@ -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