mirror of
https://github.com/Intervention/image.git
synced 2025-08-23 22:12:51 +02:00
Implement __debugInfo() (#1406)
This commit is contained in:
@@ -57,4 +57,11 @@ final class EncodedImageTest extends BaseTestCase
|
||||
$image = new EncodedImage($this->getTestResourceData(), 'image/jpeg');
|
||||
$this->assertEquals('image/jpeg', $image->mimetype());
|
||||
}
|
||||
|
||||
public function testDebugInfo(): void
|
||||
{
|
||||
$info = (new EncodedImage('foo', 'image/png'))->__debugInfo();
|
||||
$this->assertEquals('image/png', $info['mimetype']);
|
||||
$this->assertEquals(3, $info['size']);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user