Fixes : retrieving title didn't match the first closing tag

This commit is contained in:
ArthurHoaro 2016-03-08 10:00:53 +01:00
parent 890afc32f7
commit 68ea1d2b30
2 changed files with 3 additions and 1 deletions

View file

@ -15,6 +15,8 @@ class LinkUtilsTest extends PHPUnit_Framework_TestCase
$title = 'Read me please.';
$html = '<html><meta>stuff</meta><title>'. $title .'</title></html>';
$this->assertEquals($title, html_extract_title($html));
$html = '<html><title>'. $title .'</title>blabla<title>another</title></html>';
$this->assertEquals($title, html_extract_title($html));
}
/**