Skip to content

Commit c3709f4

Browse files
[Tests] Migrate tests to static data providers
1 parent 443f0f2 commit c3709f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Html5ParserCrawlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function testHtml5ParserWithInvalidHeadedContent(string $content)
5252

5353
public function validHtml5Provider(): iterable
5454
{
55-
$html = static::getDoctype().'<html><body><h1><p>Foo</p></h1></body></html>';
55+
$html = self::getDoctype().'<html><body><h1><p>Foo</p></h1></body></html>';
5656
$BOM = \chr(0xEF).\chr(0xBB).\chr(0xBF);
5757

5858
yield 'BOM first' => [$BOM.$html];
@@ -65,7 +65,7 @@ public function validHtml5Provider(): iterable
6565

6666
public function invalidHtml5Provider(): iterable
6767
{
68-
$html = static::getDoctype().'<html><body><h1><p>Foo</p></h1></body></html>';
68+
$html = self::getDoctype().'<html><body><h1><p>Foo</p></h1></body></html>';
6969

7070
yield 'Text' => ['hello world'.$html];
7171
yield 'Text between comments' => ['<!--c--> test <!--cc-->'.$html];

0 commit comments

Comments
 (0)