diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-02-24 13:29:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-24 13:29:11 +0100 |
commit | bc4a0a672ca2c653b79b5ada1713aa1a128bf62a (patch) | |
tree | 5d81e2edb9a4b29593ebea05687fcddf3aa7c993 /tests/NetscapeBookmarkUtils/BookmarkImportTest.php | |
parent | e746c237cdff932cf4c6510becc185c149fa4592 (diff) | |
parent | 3ff1ce47bc9e512ae67b009296c8ac7a6654c9ad (diff) | |
download | Shaarli-bc4a0a672ca2c653b79b5ada1713aa1a128bf62a.tar.gz Shaarli-bc4a0a672ca2c653b79b5ada1713aa1a128bf62a.tar.zst Shaarli-bc4a0a672ca2c653b79b5ada1713aa1a128bf62a.zip |
Merge pull request #1092 from ArthurHoaro/fix/scuttle-doctype-case
Ignore the case while checking DOCTYPE during the file import
Diffstat (limited to 'tests/NetscapeBookmarkUtils/BookmarkImportTest.php')
-rw-r--r-- | tests/NetscapeBookmarkUtils/BookmarkImportTest.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/NetscapeBookmarkUtils/BookmarkImportTest.php b/tests/NetscapeBookmarkUtils/BookmarkImportTest.php index 4961aa2c..f0a958cb 100644 --- a/tests/NetscapeBookmarkUtils/BookmarkImportTest.php +++ b/tests/NetscapeBookmarkUtils/BookmarkImportTest.php | |||
@@ -127,6 +127,21 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase | |||
127 | } | 127 | } |
128 | 128 | ||
129 | /** | 129 | /** |
130 | * Attempt to import bookmarks from a file with a lowercase Doctype | ||
131 | */ | ||
132 | public function testImportLowecaseDoctype() | ||
133 | { | ||
134 | $files = file2array('lowercase_doctype.htm'); | ||
135 | $this->assertStringMatchesFormat( | ||
136 | 'File lowercase_doctype.htm (386 bytes) was successfully processed in %d seconds:' | ||
137 | .' 2 links imported, 0 links overwritten, 0 links skipped.', | ||
138 | NetscapeBookmarkUtils::import(null, $files, $this->linkDb, $this->conf, $this->history) | ||
139 | ); | ||
140 | $this->assertEquals(2, count($this->linkDb)); | ||
141 | } | ||
142 | |||
143 | |||
144 | /** | ||
130 | * Ensure IE dumps are supported | 145 | * Ensure IE dumps are supported |
131 | */ | 146 | */ |
132 | public function testImportInternetExplorerEncoding() | 147 | public function testImportInternetExplorerEncoding() |