1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-26 07:14:31 +02:00

Improve Driver Specializing Process (#1315)

Streamline driver specializing process of analyzers, modifers, encoders and decoders.
This commit is contained in:
Oliver Vogel
2024-03-23 08:08:41 +01:00
committed by GitHub
parent 67be90e570
commit 7f4ff15d51
207 changed files with 1073 additions and 1185 deletions

View File

@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
namespace Intervention\Image\Tests\Unit\Drivers;
use Intervention\Image\Drivers\SpecializableModifier;
use Intervention\Image\Interfaces\ImageInterface;
use Intervention\Image\Tests\BaseTestCase;
use Mockery;
final class SpecializableModifierTest extends BaseTestCase
{
public function testApply(): void
{
$modifier = Mockery::mock(SpecializableModifier::class)->makePartial();
$image = Mockery::mock(ImageInterface::class);
$image->shouldReceive('modify')->andReturn($image);
$result = $modifier->apply($image);
$this->assertInstanceOf(ImageInterface::class, $result);
}
}