Skip to content

Commit

Permalink
Update FontTest.php
Browse files Browse the repository at this point in the history
Don't use HEREDOC syntax to compose the expected value for the testDecodeTextForFontWithIndirectEncodingWithoutTypeEncoding() test in FontTest.php. This should allow it to work regardless of the PHP file line-endings.
  • Loading branch information
GreyWyvern committed Aug 28, 2023
1 parent 89f2459 commit 457002b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests/PHPUnit/Integration/FontTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,14 +359,12 @@ public function testDecodeTextForFontWithIndirectEncodingWithoutTypeEncoding():
$pages = $document->getPages();
$page1 = reset($pages);
$page1Text = $page1->getText();
$expectedText = <<<TEXT
Export\u{a0}transakční\u{a0}historie
Typ\u{a0}produktu:\u{a0}Podnikatelský\u{a0}účet\u{a0}Maxi
Číslo\u{a0}účtu:\u{a0}0000000000/0000
Počáteční\u{a0}zůstatek:\t000\u{a0}000,00\u{a0}
Konečný\u{a0}zůstatek:\t000\u{a0}000,00\u{a0}
Cena\u{a0}za\u{a0}služby
TEXT;
$expectedText = "Export\u{a0}transakční\u{a0}historie\n";
$expectedText .= "Typ\u{a0}produktu:\u{a0}Podnikatelský\u{a0}účet\u{a0}Maxi\n";
$expectedText .= "Číslo\u{a0}účtu:\u{a0}0000000000/0000\n";
$expectedText .= "Počáteční\u{a0}zůstatek:\t000\u{a0}000,00\u{a0}\n";
$expectedText .= "Konečný\u{a0}zůstatek:\t000\u{a0}000,00\u{a0}\n";
$expectedText .= "Cena\u{a0}za\u{a0}služby";

$this->assertEquals($expectedText, trim($page1Text));
}
Expand Down

0 comments on commit 457002b

Please sign in to comment.