mirror of
https://github.com/Intervention/image.git
synced 2025-08-19 12:11:26 +02:00
Add ResolutionTest
This commit is contained in:
24
tests/ResolutionTest.php
Normal file
24
tests/ResolutionTest.php
Normal 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());
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user