1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-16 19:58:14 +01:00

Change test values

This commit is contained in:
Oliver Vogel 2024-10-06 11:50:15 +02:00
parent e77a33394c
commit 623476d8b0
No known key found for this signature in database
GPG Key ID: 1B19D214C02D69BB

View File

@ -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