Skip to content

Commit aec2f08

Browse files
committed
Add test for missing GD extension exception message
1 parent a18f3aa commit aec2f08

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎tests/system/Images/GDHandlerTest.php‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,4 +553,15 @@ public function testProcessUnsupportedImageType(): void
553553
// resize() calls ensureResource() -> getImageResource(), which should throw
554554
$this->handler->resize(10, 10);
555555
}
556+
557+
558+
public function testForMissingExtensionReturnsExpectedMessage(): void
559+
{
560+
$exception = ImageException::forMissingExtension('GD');
561+
562+
$this->assertSame(
563+
'The framework needs the following extension(s) installed and loaded: "GD".',
564+
$exception->getMessage(),
565+
);
566+
}
556567
}

0 commit comments

Comments
 (0)