Skip to content

Commit

Permalink
Update FontTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
oleibman authored Jan 29, 2025
1 parent be553c1 commit 5d34906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/PhpWordTests/Writer/HTML/FontTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public function testFontNames3(): void
self::assertEquals('style4', Helper::getTextContent($xpath, '/html/body/div/p[5]/span', 'class'));

$style = Helper::getTextContent($xpath, '/html/head/style');
$prg = preg_match('/body[*][^\\r\\n]*/m', $style, $matches);
$prg = preg_match('/^body[^\\r\\n]*/m', $style, $matches);
self::assertNotEmpty($matches);
self::assertSame(1, $prg);
self::assertEquals('body {font-family: \'Courier New\', monospace; font-size: 12pt; color: #000000;}', $matches[0]);
Expand Down

0 comments on commit 5d34906

Please sign in to comment.