forked from mpdf/mpdf
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIssue724Test.php
More file actions
30 lines (23 loc) · 560 Bytes
/
Issue724Test.php
File metadata and controls
30 lines (23 loc) · 560 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
<?php
namespace Issues;
class Issue724Test extends \Mpdf\BaseMpdfTest
{
protected function getTable()
{
$table = "<table>";
$table .= "<thead><th>Sl</th><th>Name</th></thead>";
$table .= "<tbody>";
for ($i=1; $i<= 200; $i++) {
$table .= "<tr><td>{$i}</td><td>Name #{$i}</td></tr>";
}
$table .= "</tbody>";
$table .= "</table>";
return $table;
}
public function testMissingMiwNotice()
{
$this->mpdf->WriteHTML($this->getTable());
$output = $this->mpdf->output('', 'S');
$this->assertStringStartsWith('%PDF-', $output);
}
}