1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-01 03:20:17 +02:00

Change test values

This commit is contained in:
Oliver Vogel
2024-10-06 11:50:15 +02:00
parent e77a33394c
commit 623476d8b0

View File

@@ -16,10 +16,14 @@ final class FontProcessorTest extends BaseTestCase
public function testBoxSizeTtf(): void public function testBoxSizeTtf(): void
{ {
$processor = new FontProcessor(); $processor = new FontProcessor();
$size = $processor->boxSize('ABC', $this->testFont()); $size = $processor->boxSize(
'ABC',
$this->testFont()->setSize(26),
);
$this->assertInstanceOf(SizeInterface::class, $size); $this->assertInstanceOf(SizeInterface::class, $size);
$this->assertEquals(16, $size->width()); $this->assertEquals(36, $size->width());
$this->assertEquals(7, $size->height()); $this->assertEquals(15, $size->height());
} }
public function testNativeFontSize(): void public function testNativeFontSize(): void