Skip to content

Commit 58ef1bc

Browse files
committed
test: exporter
1 parent 1b8cda0 commit 58ef1bc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/ExporterTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ public function testSetOptions()
5151
// $this->assertSame(\file_get_contents($this->ref), \file_get_contents($this->out));
5252
}
5353

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+
5462
/**
5563
* @expectedException \InvalidArgumentException
5664
* @expectedExceptionMessage The given font doesnot exist.

0 commit comments

Comments
 (0)