1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-30 01:00:06 +02:00

Restructure test folders & refactor test traits

This commit is contained in:
Oliver Vogel
2024-03-10 10:00:06 +01:00
parent 2e9f91c311
commit 67fde5f87e
97 changed files with 164 additions and 401 deletions

View File

@@ -7,16 +7,13 @@ namespace Intervention\Image\Tests\Unit\Drivers\Imagick\Analyzers;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
use Intervention\Image\Analyzers\WidthAnalyzer;
use Intervention\Image\Tests\BaseTestCase;
use Intervention\Image\Tests\Traits\CanCreateImagickTestImage;
use Intervention\Image\Tests\ImagickTestCase;
#[RequiresPhpExtension('imagick')]
#[CoversClass(\Intervention\Image\Analyzers\WidthAnalyzer::class)]
#[CoversClass(\Intervention\Image\Drivers\Imagick\Analyzers\WidthAnalyzer::class)]
final class WidthAnalyzerTest extends BaseTestCase
final class WidthAnalyzerTest extends ImagickTestCase
{
use CanCreateImagickTestImage;
public function testAnalyze(): void
{
$image = $this->readTestImage('tile.png');