mirror of
https://github.com/Intervention/image.git
synced 2025-08-22 13:32:56 +02:00
27 lines
827 B
PHP
27 lines
827 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Intervention\Image\Tests\Unit\Drivers\Imagick\Analyzers;
|
|
|
|
use Intervention\Image\Drivers\Imagick\Analyzers\ProfileAnalyzer;
|
|
use Intervention\Image\Drivers\Imagick\Driver;
|
|
use PHPUnit\Framework\Attributes\CoversClass;
|
|
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
|
|
use Intervention\Image\Exceptions\ColorException;
|
|
use Intervention\Image\Tests\ImagickTestCase;
|
|
|
|
#[RequiresPhpExtension('imagick')]
|
|
#[CoversClass(ProfileAnalyzer::class)]
|
|
final class ProfileAnalyzerTest extends ImagickTestCase
|
|
{
|
|
public function testAnalyze(): void
|
|
{
|
|
$image = $this->readTestImage('tile.png');
|
|
$analyzer = new ProfileAnalyzer();
|
|
$analyzer->setDriver(new Driver());
|
|
$this->expectException(ColorException::class);
|
|
$analyzer->analyze($image);
|
|
}
|
|
}
|