X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fbookmark%2FLinkUtilsTest.php;h=591976f2c30b1a293ec7f845972147a02c3420c4;hb=0498b209b551cad5595312583e5d6fb1bc3303a5;hp=1b8688e6d398fc1381e6b2acc586ae2562c282f2;hpb=fe3713d2e5c91e2d07af72b39f321521d3dd470c;p=github%2Fshaarli%2FShaarli.git
diff --git a/tests/bookmark/LinkUtilsTest.php b/tests/bookmark/LinkUtilsTest.php
index 1b8688e6..591976f2 100644
--- a/tests/bookmark/LinkUtilsTest.php
+++ b/tests/bookmark/LinkUtilsTest.php
@@ -2,14 +2,16 @@
namespace Shaarli\Bookmark;
+use PHPUnit\Framework\TestCase;
use ReferenceLinkDB;
+use Shaarli\Config\ConfigManager;
require_once 'tests/utils/CurlUtils.php';
/**
* Class LinkUtilsTest.
*/
-class LinkUtilsTest extends \PHPUnit\Framework\TestCase
+class LinkUtilsTest extends TestCase
{
/**
* Test html_extract_title() when the title is found.
@@ -75,12 +77,57 @@ class LinkUtilsTest extends \PHPUnit\Framework\TestCase
$this->assertFalse(html_extract_charset($html));
}
+ /**
+ * Test html_extract_tag() when the tag stuff2