1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-22 21:42:53 +02:00

Implement IteratorAggregate for Resolution::class

This commit is contained in:
Oliver Vogel
2025-03-05 16:35:04 +01:00
parent 78e290ae97
commit 00bc65e491
2 changed files with 26 additions and 1 deletions

View File

@@ -17,6 +17,14 @@ final class ResolutionTest extends BaseTestCase
$this->assertInstanceOf(Resolution::class, $resolution);
}
public function testIteration(): void
{
$resolution = new Resolution(1.2, 3.4);
foreach ($resolution as $value) {
$this->assertIsFloat($value);
}
}
public function testXY(): void
{
$resolution = new Resolution(1.2, 3.4);