From e3748065bb2da8656bc54853ecb5f04f7ab1fe83 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sun, 29 Oct 2023 08:31:01 +0100 Subject: [PATCH] Add ResolutionTest --- tests/ResolutionTest.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/ResolutionTest.php diff --git a/tests/ResolutionTest.php b/tests/ResolutionTest.php new file mode 100644 index 00000000..3e152d83 --- /dev/null +++ b/tests/ResolutionTest.php @@ -0,0 +1,24 @@ +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()); + } +}