forked from mpdf/mpdf
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIssue442Test.php
More file actions
24 lines (15 loc) · 1020 Bytes
/
Issue442Test.php
File metadata and controls
24 lines (15 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
namespace Issues;
use Mpdf\Mpdf;
class Issue442Test extends \Mpdf\BaseMpdfTest
{
public function testZeroContainingDiv()
{
$html = '<span style="font-size: 12pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">You have </span><span style="font-size: 12pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: bold; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;">0</span><span style="font-size: 12pt; font-family: Arial; color: #000000; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;"> public records. </span></div>';
$this->mpdf->setCompression(false);
$this->mpdf->WriteHtml($html);
$out = $this->mpdf->Output('', 'S');
$pos = strpos($out, '(0) Tj ET Q');
$this->assertGreaterThan(0, $pos);
}
}