We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b8cda0 commit 58ef1bcCopy full SHA for 58ef1bc
tests/ExporterTest.php
@@ -51,6 +51,14 @@ public function testSetOptions()
51
// $this->assertSame(\file_get_contents($this->ref), \file_get_contents($this->out));
52
}
53
54
+ public function testSetOptionsFont()
55
+ {
56
+ Exporter::for(__DIR__ . '/../example.php')->export($this->out, ['font' => __DIR__ . '/../font/dejavu.ttf']);
57
+
58
+ $this->assertFileExists($this->out, 'It should export with given font');
59
+ // $this->assertSame(\file_get_contents($this->ref), \file_get_contents($this->out));
60
+ }
61
62
/**
63
* @expectedException \InvalidArgumentException
64
* @expectedExceptionMessage The given font doesnot exist.
0 commit comments