Skip to content

Commit 32a07d9

Browse files
OskarStarknicolas-grekas
authored andcommitted
Use static methods inside data providers
1 parent b8fd0ff commit 32a07d9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Tests/AbstractCrawlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ abstract class AbstractCrawlerTest extends TestCase
2222
{
2323
use ExpectDeprecationTrait;
2424

25-
abstract public function getDoctype(): string;
25+
abstract public static function getDoctype(): string;
2626

2727
protected function createCrawler($node = null, string $uri = null, string $baseHref = null)
2828
{

Tests/Html5ParserCrawlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class Html5ParserCrawlerTest extends AbstractCrawlerTest
1515
{
16-
public function getDoctype(): string
16+
public static function getDoctype(): string
1717
{
1818
return '<!DOCTYPE html>';
1919
}

Tests/NativeParserCrawlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class NativeParserCrawlerTest extends AbstractCrawlerTest
1515
{
16-
public function getDoctype(): string
16+
public static function getDoctype(): string
1717
{
1818
return '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
1919
}

0 commit comments

Comments
 (0)