1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-24 14:32:52 +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

@@ -390,4 +390,11 @@ final class ImageTest extends GdTestCase
$this->assertInstanceOf(ImageInterface::class, $result);
$this->assertEquals('4cfaff', $image->pickColor(14, 14)->toHex());
}
public function testDebugInfo(): void
{
$info = $this->readTestImage('trim.png')->__debugInfo();
$this->assertArrayHasKey('width', $info);
$this->assertArrayHasKey('height', $info);
}
}