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
diff --git a/vendor/phenx/php-font-lib/tests/FontLib/FontTest.php b/vendor/phenx/php-font-lib/tests/FontLib/FontTest.php
new file mode 100644 (file)
index 0000000..08cf415
--- /dev/null
@@ -0,0 +1,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);
+    }
+}
\ No newline at end of file