forked from mpdf/mpdf
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIssue665Test.php
More file actions
25 lines (17 loc) · 496 Bytes
/
Issue665Test.php
File metadata and controls
25 lines (17 loc) · 496 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
25
<?php
namespace Issues;
class Issue665Test extends \Mpdf\BaseMpdfTest
{
public function testMultipleTocPageBreak()
{
$html = '
<tocpagebreak links="on" name="first" />
<tocpagebreak links="on" name="second" />
<tocentry content="Heading 1" name="first" />
<tocentry content="Alternate 1" name="second" />';
$this->mpdf->setCompression(false);
$this->mpdf->WriteHTML($html);
$output = $this->mpdf->output('', 'S');
$this->assertStringStartsWith('%PDF-', $output);
}
}