Skip to content

Commit 5bfa4c7

Browse files
committed
ensure multibyte search work on dom->see(text, element) as well
1 parent 7a2179a commit 5bfa4c7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/system/Test/DOMParserTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,17 @@ public function testSeeFail()
107107
$this->assertFalse($dom->see('Hello Worlds'));
108108
}
109109

110-
public function testSeeElement()
110+
/**
111+
* @dataProvider provideText
112+
*/
113+
public function testSeeElement($text)
111114
{
112115
$dom = new DOMParser();
113116

114-
$html = '<html><body><h1>Hello World</h1></body></html>';
117+
$html = '<html><body><h1> ' . $text . '</h1></body></html>';
115118
$dom->withString($html);
116119

117-
$this->assertTrue($dom->see('Hello World', 'h1'));
120+
$this->assertTrue($dom->see($text, 'h1'));
118121
}
119122

120123
public function testSeeElementPartialText()

0 commit comments

Comments
 (0)