mirror of
https://github.com/Intervention/image.git
synced 2025-08-24 06:22:57 +02:00
Add tests for Image::getExif() & Image::setExif()
This commit is contained in:
@@ -11,7 +11,6 @@ use Intervention\Image\Interfaces\EncoderInterface;
|
|||||||
use Intervention\Image\Interfaces\FrameInterface;
|
use Intervention\Image\Interfaces\FrameInterface;
|
||||||
use Intervention\Image\Interfaces\ImageInterface;
|
use Intervention\Image\Interfaces\ImageInterface;
|
||||||
use Intervention\Image\Interfaces\ModifierInterface;
|
use Intervention\Image\Interfaces\ModifierInterface;
|
||||||
use Intervention\Image\Interfaces\PointInterface;
|
|
||||||
use Intervention\Image\Tests\TestCase;
|
use Intervention\Image\Tests\TestCase;
|
||||||
use Mockery;
|
use Mockery;
|
||||||
|
|
||||||
@@ -427,6 +426,15 @@ class AbstractImageTest extends TestCase
|
|||||||
$this->assertInstanceOf(ImageInterface::class, $result);
|
$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
|
public function testDestroy(): void
|
||||||
{
|
{
|
||||||
$img = $this->abstractImageMock();
|
$img = $this->abstractImageMock();
|
||||||
|
Reference in New Issue
Block a user