forked from mpdf/mpdf
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIssue825Test.php
More file actions
29 lines (19 loc) · 590 Bytes
/
Issue825Test.php
File metadata and controls
29 lines (19 loc) · 590 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
<?php
namespace Issues;
class Issue825Test extends \Mpdf\BaseMpdfTest
{
public function testLowercaseRomanPageNumbers()
{
$this->mpdf->setCompression(false);
$this->mpdf->defaultPageNumStyle = 'i';
$this->mpdf->setFooter('{PAGENO}');
for ($i = 0; $i < 15; $i++) {
$this->mpdf->AddPage();
}
$output = $this->mpdf->output('', 'S');
$this->assertStringStartsWith('%PDF-', $output);
$this->assertMatchesRegularExpression('/vii/', $output);
$this->assertMatchesRegularExpression('/xii/', $output);
$this->assertMatchesRegularExpression('/xiv/', $output);
}
}