mirror of
https://github.com/Intervention/image.git
synced 2025-08-12 17:03:59 +02:00
Rename debug info key for more consistency
This commit is contained in:
@@ -59,7 +59,7 @@ class EncodedImage extends File implements EncodedImageInterface
|
|||||||
public function __debugInfo(): array
|
public function __debugInfo(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'mimetype' => $this->mimetype(),
|
'mediaType' => $this->mediaType(),
|
||||||
'size' => $this->size(),
|
'size' => $this->size(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@@ -61,7 +61,7 @@ final class EncodedImageTest extends BaseTestCase
|
|||||||
public function testDebugInfo(): void
|
public function testDebugInfo(): void
|
||||||
{
|
{
|
||||||
$info = (new EncodedImage('foo', 'image/png'))->__debugInfo();
|
$info = (new EncodedImage('foo', 'image/png'))->__debugInfo();
|
||||||
$this->assertEquals('image/png', $info['mimetype']);
|
$this->assertEquals('image/png', $info['mediaType']);
|
||||||
$this->assertEquals(3, $info['size']);
|
$this->assertEquals(3, $info['size']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user