1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-31 17:41:58 +02:00

Optimize tests

This commit is contained in:
Oliver Vogel
2024-12-06 17:32:55 +01:00
parent 69daa96f66
commit b9a16d4df6
120 changed files with 292 additions and 185 deletions

View File

@@ -8,7 +8,9 @@ use Intervention\Image\Interfaces\FontInterface;
use Intervention\Image\Tests\BaseTestCase;
use Intervention\Image\Typography\Font;
use Intervention\Image\Typography\FontFactory;
use PHPUnit\Framework\Attributes\CoversClass;
#[CoversClass(FontFactory::class)]
final class FontFactoryTest extends BaseTestCase
{
public function testBuildWithFont(): void

View File

@@ -7,7 +7,9 @@ namespace Intervention\Image\Tests\Unit\Typography;
use Intervention\Image\Exceptions\FontException;
use Intervention\Image\Tests\BaseTestCase;
use Intervention\Image\Typography\Font;
use PHPUnit\Framework\Attributes\CoversClass;
#[CoversClass(Font::class)]
final class FontTest extends BaseTestCase
{
public function testConstructor(): void

View File

@@ -7,7 +7,9 @@ namespace Intervention\Image\Tests\Unit\Typography;
use Intervention\Image\Geometry\Point;
use Intervention\Image\Tests\BaseTestCase;
use Intervention\Image\Typography\Line;
use PHPUnit\Framework\Attributes\CoversClass;
#[CoversClass(Line::class)]
final class LineTest extends BaseTestCase
{
public function testConstructor(): void

View File

@@ -6,7 +6,9 @@ namespace Intervention\Image\Tests\Unit\Typography;
use Intervention\Image\Tests\BaseTestCase;
use Intervention\Image\Typography\TextBlock;
use PHPUnit\Framework\Attributes\CoversClass;
#[CoversClass(TextBlock::class)]
final class TextBlockTest extends BaseTestCase
{
protected TextBlock $block;