mirror of
https://github.com/Intervention/image.git
synced 2025-03-15 22:49:40 +01:00
Add test
This commit is contained in:
parent
63e8b9ff80
commit
defbbefcf2
23
tests/Modifiers/SpecializableModifierTest.php
Normal file
23
tests/Modifiers/SpecializableModifierTest.php
Normal 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);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user