1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-19 20:21:32 +02:00

Improve Origin code & tests

This commit is contained in:
Oliver Vogel
2024-01-14 10:55:52 +01:00
parent 83113f6004
commit 92aa8b4b1e

View File

@@ -13,6 +13,13 @@ class OriginTest extends TestCase
$origin = new Origin('image/gif');
$this->assertEquals('image/gif', $origin->mediaType());
$this->assertEquals('image/gif', $origin->mimetype());
}
public function testFilePath(): void
{
$origin = new Origin('image/jpeg', __DIR__ . '/tests/images/example.jpg');
$this->assertEquals(__DIR__ . '/tests/images/example.jpg', $origin->filePath());
}
public function testFileExtension(): void