-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "Undefined array key _ in Otl.php:1542" (Closes mpdf#1962)
* Fix "Undefined array key _ in Otl.php:1542" --------- Co-authored-by: Mikhailov Nikolai <[email protected]>
- Loading branch information
1 parent
d748f1e
commit 00a35a6
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace Issues; | ||
|
||
use Mpdf\BaseMpdfTest; | ||
use Mpdf\Mpdf; | ||
use Mpdf\Output\Destination; | ||
|
||
class Issue1963Test extends BaseMpdfTest | ||
{ | ||
public function testNoWarning() | ||
{ | ||
$mpdf = new Mpdf([ | ||
'mode' => '-aCJK', | ||
'autoScriptToLang' => true, | ||
'autoLangToFont' => true, | ||
'default_font' => 'dejavusans', | ||
]); | ||
|
||
$mpdf->WriteHTML('<p>न्</p>'); | ||
$output = $mpdf->OutputBinaryData(); | ||
|
||
$this->assertStringStartsWith('%PDF-', $output); | ||
} | ||
} |