-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Intervention\Image\Drivers\Vips\Tests\Unit\Analyzers; | ||
|
||
use Intervention\Image\Colors\Rgb\Colorspace as Rgb; | ||
use Intervention\Image\Drivers\Vips\Analyzers\ColorspaceAnalyzer; | ||
use Intervention\Image\Drivers\Vips\Driver; | ||
use Intervention\Image\Drivers\Vips\Tests\BaseTestCase; | ||
use Intervention\Image\Interfaces\ColorspaceInterface; | ||
use PHPUnit\Framework\Attributes\CoversClass; | ||
|
||
#[CoversClass(ColorspaceAnalyzer::class)] | ||
final class ColorspaceAnalyzerTest extends BaseTestCase | ||
{ | ||
public function testAnalyze(): void | ||
{ | ||
$image = $this->readTestImage('tile.png'); | ||
$analyzer = new ColorspaceAnalyzer(); | ||
$analyzer->setDriver(new Driver()); | ||
$result = $analyzer->analyze($image); | ||
$this->assertInstanceOf(ColorspaceInterface::class, $result); | ||
$this->assertInstanceOf(Rgb::class, $result); | ||
} | ||
} |