mirror of
https://github.com/Intervention/image.git
synced 2025-08-24 22:35:46 +02:00
Implement IteratorAggregate for Point::class
This commit is contained in:
@@ -27,6 +27,14 @@ final class PointTest extends BaseTestCase
|
||||
$this->assertEquals(50, $point->y());
|
||||
}
|
||||
|
||||
public function testIteration(): void
|
||||
{
|
||||
$point = new Point(40, 50);
|
||||
foreach ($point as $value) {
|
||||
$this->assertIsInt($value);
|
||||
}
|
||||
}
|
||||
|
||||
public function testGetSetX(): void
|
||||
{
|
||||
$point = new Point(0, 0);
|
||||
|
Reference in New Issue
Block a user