1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-17 04:08:14 +01:00
intervention_image/tests/TestCase.php

23 lines
602 B
PHP
Raw Normal View History

2021-10-21 14:32:05 +02:00
<?php
namespace Intervention\Image\Tests;
use Intervention\Image\Interfaces\ColorInterface;
use Mockery\Adapter\Phpunit\MockeryTestCase;
2021-10-21 14:32:05 +02:00
abstract class TestCase extends MockeryTestCase
2021-10-21 14:32:05 +02:00
{
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());
2021-10-21 14:32:05 +02:00
}
}