1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-26 23:35:12 +02:00

Implement __debugInfo() (#1406)

This commit is contained in:
Oliver Vogel
2024-12-14 08:27:56 +01:00
committed by GitHub
parent 1493a2b71b
commit 92bae6e762
16 changed files with 159 additions and 3 deletions

View File

@@ -325,4 +325,11 @@ final class RectangleTest extends BaseTestCase
$this->assertEquals(800, $result->width());
$this->assertEquals(600, $result->height());
}
public function testDebugInfo(): void
{
$info = (new Rectangle(800, 600))->__debugInfo();
$this->assertEquals(800, $info['width']);
$this->assertEquals(600, $info['height']);
}
}