1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-23 22:12:51 +02:00

Add tests for Image::getExif() & Image::setExif()

This commit is contained in:
Oliver Vogel
2023-10-05 17:42:56 +02:00
parent 26af25da13
commit d317c47871

View File

@@ -11,7 +11,6 @@ use Intervention\Image\Interfaces\EncoderInterface;
use Intervention\Image\Interfaces\FrameInterface;
use Intervention\Image\Interfaces\ImageInterface;
use Intervention\Image\Interfaces\ModifierInterface;
use Intervention\Image\Interfaces\PointInterface;
use Intervention\Image\Tests\TestCase;
use Mockery;
@@ -427,6 +426,15 @@ class AbstractImageTest extends TestCase
$this->assertInstanceOf(ImageInterface::class, $result);
}
public function testSetGetExif(): void
{
$img = $this->abstractImageMock();
$img->setExif((['test' => 'value']));
$this->assertInstanceOf(Collection::class, $img->getExif());
$this->assertEquals('value', $img->getExif('test'));
}
public function testDestroy(): void
{
$img = $this->abstractImageMock();