mirror of
https://github.com/Intervention/image.git
synced 2025-08-25 23:06:13 +02:00
Improve Driver Specializing Process (#1315)
Streamline driver specializing process of analyzers, modifers, encoders and decoders.
This commit is contained in:
20
tests/Unit/Drivers/SpecializableDecoderTest.php
Normal file
20
tests/Unit/Drivers/SpecializableDecoderTest.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Intervention\Image\Tests\Unit\Drivers;
|
||||
|
||||
use Intervention\Image\Drivers\SpecializableDecoder;
|
||||
use Intervention\Image\Exceptions\DecoderException;
|
||||
use Intervention\Image\Tests\BaseTestCase;
|
||||
use Mockery;
|
||||
|
||||
final class SpecializableDecoderTest extends BaseTestCase
|
||||
{
|
||||
public function testDecode(): void
|
||||
{
|
||||
$decoder = Mockery::mock(SpecializableDecoder::class)->makePartial();
|
||||
$this->expectException(DecoderException::class);
|
||||
$decoder->decode(null);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user