Support phpunit 7, let travis test PHP 7.2 and 7.1
[grauphel.git] / tests / Lib / Converter / HtmlTest.php
index 0a66ee45c7f5374a10d3231435a157699a5e746d..7af71d793a64b912c97b2af1f0a67b4fbf69b932 100644 (file)
@@ -1,13 +1,14 @@
 <?php
+require_once __DIR__ . '/../../../lib/converter/base.php';
 require_once __DIR__ . '/../../../lib/converter/html.php';
 
-class Lib_Converter_HtmlTest extends PHPUnit_Framework_TestCase
+class Lib_Converter_HtmlTest extends \PHPUnit\Framework\TestCase
 {
     public function testConvert()
     {
         $input = file_get_contents(__DIR__ . '/../../data/formattest.tomboynotecontent');
 
-        $converter = new OCA\Grauphel\Lib\Converter\Html();
+        $converter = new OCA\Grauphel\Converter\Html();
         $output = $converter->convert($input);
         $this->assertEquals(
             file_get_contents(__DIR__ . '/../../data/formattest.html'),
@@ -19,7 +20,7 @@ class Lib_Converter_HtmlTest extends PHPUnit_Framework_TestCase
     {
         $input = file_get_contents(__DIR__ . '/../../data/xss.tomboynotecontent');
 
-        $converter = new OCA\Grauphel\Lib\Converter\Html();
+        $converter = new OCA\Grauphel\Converter\Html();
         $output = $converter->convert($input);
         $this->assertEquals(
             file_get_contents(__DIR__ . '/../../data/xss.html'),
@@ -27,4 +28,4 @@ class Lib_Converter_HtmlTest extends PHPUnit_Framework_TestCase
         );
     }
 }
-?>
\ No newline at end of file
+?>