diff --git a/tests/Unit/Drivers/Imagick/FontProcessorTest.php b/tests/Unit/Drivers/Imagick/FontProcessorTest.php index 063dc9739..e8c5f521d 100644 --- a/tests/Unit/Drivers/Imagick/FontProcessorTest.php +++ b/tests/Unit/Drivers/Imagick/FontProcessorTest.php @@ -16,10 +16,14 @@ final class FontProcessorTest extends BaseTestCase public function testBoxSizeTtf(): void { $processor = new FontProcessor(); - $size = $processor->boxSize('ABC', $this->testFont()); + $size = $processor->boxSize( + 'ABC', + $this->testFont()->setSize(26), + ); + $this->assertInstanceOf(SizeInterface::class, $size); - $this->assertEquals(16, $size->width()); - $this->assertEquals(7, $size->height()); + $this->assertEquals(36, $size->width()); + $this->assertEquals(15, $size->height()); } public function testNativeFontSize(): void