We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a2179a commit 5bfa4c7Copy full SHA for 5bfa4c7
tests/system/Test/DOMParserTest.php
@@ -107,14 +107,17 @@ public function testSeeFail()
107
$this->assertFalse($dom->see('Hello Worlds'));
108
}
109
110
- public function testSeeElement()
+ /**
111
+ * @dataProvider provideText
112
+ */
113
+ public function testSeeElement($text)
114
{
115
$dom = new DOMParser();
116
- $html = '<html><body><h1>Hello World</h1></body></html>';
117
+ $html = '<html><body><h1> ' . $text . '</h1></body></html>';
118
$dom->withString($html);
119
- $this->assertTrue($dom->see('Hello World', 'h1'));
120
+ $this->assertTrue($dom->see($text, 'h1'));
121
122
123
public function testSeeElementPartialText()
0 commit comments