mirror of
https://github.com/Intervention/image.git
synced 2025-08-22 21:42:53 +02:00
25 lines
738 B
PHP
25 lines
738 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Intervention\Image\Tests\Unit\Drivers;
|
|
|
|
use Intervention\Image\Drivers\SpecializableAnalyzer;
|
|
use Intervention\Image\Interfaces\ImageInterface;
|
|
use Intervention\Image\Tests\BaseTestCase;
|
|
use Mockery;
|
|
use PHPUnit\Framework\Attributes\CoversClass;
|
|
|
|
#[CoversClass(SpecializableAnalyzer::class)]
|
|
final class SpecializableAnalyzerTest extends BaseTestCase
|
|
{
|
|
public function testAnalyze(): void
|
|
{
|
|
$analyzer = Mockery::mock(SpecializableAnalyzer::class)->makePartial();
|
|
$image = Mockery::mock(ImageInterface::class);
|
|
$image->shouldReceive('analyze')->andReturn('test');
|
|
$result = $analyzer->analyze($image);
|
|
$this->assertEquals('test', $result);
|
|
}
|
|
}
|