- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIssue1129Test.php
More file actions
39 lines (27 loc) · 942 Bytes
/
Issue1129Test.php
File metadata and controls
39 lines (27 loc) · 942 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
<?php
namespace Issues;
use Mpdf\Mpdf;
class Issue1129Test extends \Mpdf\BaseMpdfTest
{
public function testShowVersion()
{
$this->mpdf->setCompression(false);
$output = $this->mpdf->Output('', 'S');
$this->assertStringStartsWith('%PDF-', $output);
// hack with assertEquals/preg_match used because of PHPUnit 5 binary string handling
// preg_match("@/Producer \(��mPDF " . preg_quote(Mpdf::VERSION, '@') . '\)@m', $output, $matches);
// $this->assertCount(2, $matches);
// @todo solve
}
public function testHideVersion()
{
$this->mpdf->setCompression(false);
$this->mpdf->exposeVersion = false;
$output = $this->mpdf->Output('', 'S');
$this->assertStringStartsWith('%PDF-', $output);
// hack with assertEquals/preg_match used because of PHPUnit 5 binary string handling
// preg_match("@/Producer \(��mPDF\)@", $output, $matches);
// $this->assertCount(2, $matches);
// @todo solve
}
}