aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-03-08 10:00:53 +0100
committerArthurHoaro <arthur@hoa.ro>2016-03-08 10:00:53 +0100
commit68ea1d2b30db8ab295e47e9ac5f6c8e81676caf7 (patch)
tree3be406a48569c02a17584de99982dedd25627830 /tests
parent890afc32f744859d11b97eb26ed5c030af9b4145 (diff)
downloadShaarli-68ea1d2b30db8ab295e47e9ac5f6c8e81676caf7.tar.gz
Shaarli-68ea1d2b30db8ab295e47e9ac5f6c8e81676caf7.tar.zst
Shaarli-68ea1d2b30db8ab295e47e9ac5f6c8e81676caf7.zip
Fixes #512: retrieving title didn't match the first closing tag
Diffstat (limited to 'tests')
-rw-r--r--tests/LinkUtilsTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/LinkUtilsTest.php b/tests/LinkUtilsTest.php
index c2257590..609a80cb 100644
--- a/tests/LinkUtilsTest.php
+++ b/tests/LinkUtilsTest.php
@@ -15,6 +15,8 @@ class LinkUtilsTest extends PHPUnit_Framework_TestCase
15 $title = 'Read me please.'; 15 $title = 'Read me please.';
16 $html = '<html><meta>stuff</meta><title>'. $title .'</title></html>'; 16 $html = '<html><meta>stuff</meta><title>'. $title .'</title></html>';
17 $this->assertEquals($title, html_extract_title($html)); 17 $this->assertEquals($title, html_extract_title($html));
18 $html = '<html><title>'. $title .'</title>blabla<title>another</title></html>';
19 $this->assertEquals($title, html_extract_title($html));
18 } 20 }
19 21
20 /** 22 /**