Skip to content

Commit

Permalink
Change test values
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Oct 6, 2024
1 parent e77a333 commit 623476d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/Unit/Drivers/Imagick/FontProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 623476d

Please sign in to comment.