/var/www/hkosl.com/innoutstorage/webadmin/dompdf/lib/php-font-lib/tests/FontLib/FontTest.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

namespace FontLib\Tests;

use 
FontLib\Font;

class 
FontTest extends \PHPUnit_Framework_TestCase
{
    
/**
     * @expectedException \Fontlib\Exception\FontNotFoundException
     */
    
public function testLoadFileNotFound()
    {
        
Font::load('non-existing/font.ttf');
    }

    public function 
testLoadTTFFontSuccessfully()
    {
        
$trueTypeFont Font::load('sample-fonts/IntelClear-Light.ttf');

        
$this->assertInstanceOf('FontLib\TrueType\File'$trueTypeFont);
    }
}