File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ public function testAddHtml5()
29
29
/** @dataProvider validHtml5Provider */
30
30
public function testHtml5ParserParseContentStartingWithValidHeading (string $ content )
31
31
{
32
- $ this ->skipTestIfHTML5LibraryNotAvailable ();
33
-
34
32
$ crawler = $ this ->createCrawler ();
35
33
$ crawler ->addHtmlContent ($ content );
36
34
self ::assertEquals (
@@ -43,8 +41,6 @@ public function testHtml5ParserParseContentStartingWithValidHeading(string $cont
43
41
/** @dataProvider invalidHtml5Provider */
44
42
public function testHtml5ParserWithInvalidHeadedContent (string $ content )
45
43
{
46
- $ this ->skipTestIfHTML5LibraryNotAvailable ();
47
-
48
44
$ crawler = $ this ->createCrawler ();
49
45
$ crawler ->addHtmlContent ($ content );
50
46
self ::assertEmpty ($ crawler ->filterXPath ('//h1 ' )->text (), '->addHtmlContent failed as expected ' );
@@ -70,11 +66,4 @@ public function invalidHtml5Provider(): iterable
70
66
yield 'Text ' => ['hello world ' .$ html ];
71
67
yield 'Text between comments ' => ['<!--c--> test <!--cc--> ' .$ html ];
72
68
}
73
-
74
- private function skipTestIfHTML5LibraryNotAvailable (): void
75
- {
76
- if (!class_exists (\Masterminds \HTML5 ::class)) {
77
- self ::markTestSkipped ('HTML5 library is not available ' );
78
- }
79
- }
80
69
}
You can’t perform that action at this time.
0 commit comments