mirror of
https://github.com/Intervention/image.git
synced 2025-08-31 17:41:58 +02:00
Optimize tests
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user