Skip to content
Snippets Groups Projects
Commit 0483f97f authored by Andreas Gohr's avatar Andreas Gohr
Browse files

added multiby html_highlight tests FS#2440

parent ff10b240
No related branches found
No related tags found
No related merge requests found
......@@ -97,4 +97,36 @@ class html_hilight_test extends DokuWikiTest {
html_hilight($html,'x/')
);
}
function testMB() {
$html = 'foo ДокуВики bar';
$this->assertRegExp(
'/foo <span.*>ДокуВики<\/span> bar/',
html_hilight($html,'ДокуВики')
);
}
function testMBright() {
$html = 'foo ДокуВики bar';
$this->assertRegExp(
'/foo <span.*>Доку<\/span>Вики bar/',
html_hilight($html,'Доку*')
);
}
function testMBleft() {
$html = 'foo ДокуВики bar';
$this->assertRegExp(
'/foo Доку<span.*>Вики<\/span> bar/',
html_hilight($html,'*Вики')
);
}
function testMBboth() {
$html = 'foo ДокуВики bar';
$this->assertRegExp(
'/foo До<span.*>куВи<\/span>ки bar/',
html_hilight($html,'*куВи*')
);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment