From 92aa8b4b1eed138bca05e896f148cb1dd65a9f04 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sun, 14 Jan 2024 10:55:52 +0100 Subject: [PATCH] Improve Origin code & tests --- tests/OriginTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/OriginTest.php b/tests/OriginTest.php index 9d9b2cdc..c3374ab9 100644 --- a/tests/OriginTest.php +++ b/tests/OriginTest.php @@ -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