Skip to content

Commit

Permalink
Add more detailed assertion message
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Jan 30, 2025
1 parent f6165cd commit 513b8c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected function assertTransparency(ColorInterface $color)
{
$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
Expand Down

0 comments on commit 513b8c8

Please sign in to comment.