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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user