3 namespace FontLib\Tests;
7 class FontTest extends \PHPUnit_Framework_TestCase
10 * @expectedException \Fontlib\Exception\FontNotFoundException
12 public function testLoadFileNotFound()
14 Font::load('non-existing/font.ttf');
17 public function testLoadTTFFontSuccessfully()
19 $trueTypeFont = Font::load('sample-fonts/IntelClear-Light.ttf');
21 $this->assertInstanceOf('FontLib\TrueType\File', $trueTypeFont);