1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-17 20:28:21 +01:00
intervention_image/tests/TestCase.php
2022-03-26 18:41:46 +03:00

23 lines
602 B
PHP

<?php
namespace Intervention\Image\Tests;
use Intervention\Image\Interfaces\ColorInterface;
use Mockery\Adapter\Phpunit\MockeryTestCase;
abstract class TestCase extends MockeryTestCase
{
protected function assertColor($r, $g, $b, $a, ColorInterface $color)
{
$this->assertEquals($r, $color->red());
$this->assertEquals($g, $color->green());
$this->assertEquals($b, $color->blue());
$this->assertEquals($a, $color->alpha());
}
protected function assertTransparency(ColorInterface $color)
{
$this->assertEquals(0, $color->alpha());
}
}