1
0
mirror of https://github.com/Intervention/image.git synced 2025-03-15 22:49:40 +01:00
This commit is contained in:
Oliver Vogel 2024-01-27 13:54:58 +01:00
parent 63e8b9ff80
commit defbbefcf2
No known key found for this signature in database
GPG Key ID: 1B19D214C02D69BB

View File

@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace Intervention\Image\Tests\Modifiers;
use Intervention\Image\Modifiers\SpecializableModifier;
use Intervention\Image\Interfaces\ImageInterface;
use Intervention\Image\Tests\TestCase;
use Mockery;
class SpecializableModifierTest extends TestCase
{
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);
}
}