Skip to content

Commit

Permalink
Add Origin test
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Dec 17, 2023
1 parent f3e0708 commit b12f31e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/OriginTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace Intervention\Image\Tests;

use Intervention\Image\Origin;

class OriginTest extends TestCase
{
public function testMediaType(): void
{
$origin = new Origin();
$this->assertEquals('application/octet-stream', $origin->mediaType());

$origin = new Origin('image/gif');
$this->assertEquals('image/gif', $origin->mediaType());
}
}

0 comments on commit b12f31e

Please sign in to comment.