mirror of
https://github.com/Intervention/image.git
synced 2025-08-29 08:40:33 +02:00
Add more detailed assertion message
This commit is contained in:
@@ -100,7 +100,7 @@ abstract class BaseTestCase extends MockeryTestCase
|
|||||||
{
|
{
|
||||||
$this->assertInstanceOf(RgbColor::class, $color);
|
$this->assertInstanceOf(RgbColor::class, $color);
|
||||||
$channel = $color->channel(Alpha::class);
|
$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
|
protected function assertMediaType(string|array $allowed, string|EncodedImage $input): void
|
||||||
|
Reference in New Issue
Block a user