forked from mpdf/mpdf
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIssue1430Test.php
More file actions
24 lines (16 loc) · 511 Bytes
/
Issue1430Test.php
File metadata and controls
24 lines (16 loc) · 511 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 Issue1430Test extends \Mpdf\BaseMpdfTest
{
public function testHTMLQuietZone()
{
$this->mpdf->WriteHTML('
<barcode code="1234" type="EAN128C" quiet_zone_left="0" quiet_zone_right="0" /><barcode code="5678" type="EAN128B" quiet_zone_left="0" quiet_zone_right="0" />
');
$string = $this->mpdf->Output('', 'S');
preg_match_all('/%PDF-1.4/', $string, $matches);
$this->assertArrayHasKey(0, $matches);
$this->assertCount(1, $matches[0]);
}
}