1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-17 19:26:25 +02:00

Add ResolutionTest

This commit is contained in:
Oliver Vogel
2023-10-29 08:31:01 +01:00
parent 955ba91843
commit e3748065bb

24
tests/ResolutionTest.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
namespace Intervention\Image\Tests;
use Intervention\Image\Resolution;
/**
* @covers \Intervention\Image\Resolution
*/
class ResolutionTest extends TestCase
{
public function testConstructor()
{
$resolution = new Resolution(1, 2);
$this->assertInstanceOf(Resolution::class, $resolution);
}
public function testXY(): void
{
$resolution = new Resolution(1.2, 3.4);
$this->assertEquals(1.2, $resolution->x());
$this->assertEquals(3.4, $resolution->y());
}
}