Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / phenx / php-font-lib / tests / FontLib / FontTest.php
1 <?php
2
3 namespace FontLib\Tests;
4
5 use FontLib\Font;
6
7 class FontTest extends \PHPUnit_Framework_TestCase
8 {
9     /**
10      * @expectedException \Fontlib\Exception\FontNotFoundException
11      */
12     public function testLoadFileNotFound()
13     {
14         Font::load('non-existing/font.ttf');
15     }
16
17     public function testLoadTTFFontSuccessfully()
18     {
19         $trueTypeFont = Font::load('sample-fonts/IntelClear-Light.ttf');
20
21         $this->assertInstanceOf('FontLib\TrueType\File', $trueTypeFont);
22     }
23 }