- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIssue828Test.php
More file actions
41 lines (33 loc) · 946 Bytes
/
Issue828Test.php
File metadata and controls
41 lines (33 loc) · 946 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace Issues;
use Mpdf\Output\Destination;
class Issue828Test extends \Mpdf\BaseMpdfTest
{
public function testFixedHeaderFooter()
{
$this->mpdf->WriteHTML('
<html>
<head>
<style>
@page {
header: html_myHeader;
footer: html_myFooter;
}
.fixed-position {
position: fixed;
}
</style>
</head>
<body>
<htmlpageheader name="myHeader">
<div class="fixed-position">FIXED HEADER</div>
</htmlpageheader>
<htmlpagefooter name="myFooter">
<div class="fixed-position">FIXED FOOTER</div>
</htmlpagefooter>
</body>
</html>');
$output = $this->mpdf->Output('', Destination::STRING_RETURN);
$this->assertStringStartsWith('%PDF-', $output);
}
}