forked from mpdf/mpdf
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIssue539Test.php
More file actions
24 lines (16 loc) · 477 Bytes
/
Issue539Test.php
File metadata and controls
24 lines (16 loc) · 477 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
<?php
namespace Issues;
use Mpdf\Mpdf;
class Issue539Test extends \Mpdf\BaseMpdfTest
{
public function testUndefinedGetImageFunction()
{
$html = '<svg width="100" height="100">
<circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
<image xlink:href="someImage.jpg" x="0" y="0" height="50px" width="50px"/>
</svg>';
$this->mpdf->setCompression(false);
$this->mpdf->WriteHTML($html);
$out = $this->mpdf->output('', 'S');
}
}