Skip to content

Commit 3d3f1f4

Browse files
Merge branch '6.2' into 6.3
* 6.2: Fix merge Migrate to `static` data providers using `rector/rector`
2 parents 8f24248 + 65a906f commit 3d3f1f4

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

Tests/AbstractCrawlerTestCase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public function testText()
344344
$this->assertSame('my value', $this->createTestCrawler(null)->filterXPath('//ol')->text('my value'));
345345
}
346346

347-
public function provideInnerTextExamples()
347+
public static function provideInnerTextExamples()
348348
{
349349
return [
350350
[
@@ -942,7 +942,7 @@ public function testSiblings()
942942
}
943943
}
944944

945-
public function provideMatchTests()
945+
public static function provideMatchTests()
946946
{
947947
yield ['#foo', true, '#foo'];
948948
yield ['#foo', true, '.foo'];
@@ -1165,7 +1165,7 @@ public function testBaseTag($baseValue, $linkValue, $expectedUri, $currentUri =
11651165
$this->assertEquals($expectedUri, $crawler->filterXPath('//a')->link()->getUri(), $description);
11661166
}
11671167

1168-
public function getBaseTagData()
1168+
public static function getBaseTagData()
11691169
{
11701170
return [
11711171
['http://base.com', 'link', 'http://base.com/link'],
@@ -1185,7 +1185,7 @@ public function testBaseTagWithForm($baseValue, $actionValue, $expectedUri, $cur
11851185
$this->assertEquals($expectedUri, $crawler->filterXPath('//button')->form()->getUri(), $description);
11861186
}
11871187

1188-
public function getBaseTagWithFormData()
1188+
public static function getBaseTagWithFormData()
11891189
{
11901190
return [
11911191
['https://base.com/', 'link/', 'https://base.com/link/', 'https://base.com/link/', '<base> tag does work with a path and relative form action'],

Tests/Field/FileFormFieldTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function testSetValue($method)
7878
);
7979
}
8080

81-
public function getSetValueMethods()
81+
public static function getSetValueMethods()
8282
{
8383
return [
8484
['setValue'],

Tests/FormTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function testConstructorThrowsExceptionIfNoRelatedForm(\DOMElement $node)
7878
new Form($node, 'http://example.com');
7979
}
8080

81-
public function constructorThrowsExceptionIfNoRelatedFormProvider()
81+
public static function constructorThrowsExceptionIfNoRelatedFormProvider()
8282
{
8383
$dom = new \DOMDocument();
8484
$dom->loadHTML('
@@ -217,7 +217,7 @@ function ($field) {
217217
);
218218
}
219219

220-
public function provideInitializeValues()
220+
public static function provideInitializeValues()
221221
{
222222
return [
223223
[
@@ -585,7 +585,7 @@ public function testGetUriWithActionOverride()
585585
$this->assertEquals('http://localhost/bar', $form->getUri(), '->getUri() returns absolute URIs');
586586
}
587587

588-
public function provideGetUriValues()
588+
public static function provideGetUriValues()
589589
{
590590
return [
591591
[

Tests/Html5ParserCrawlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function testHtml5ParserWithInvalidHeadedContent(string $content)
4646
self::assertEmpty($crawler->filterXPath('//h1')->text(), '->addHtmlContent failed as expected');
4747
}
4848

49-
public function validHtml5Provider(): iterable
49+
public static function validHtml5Provider(): iterable
5050
{
5151
$html = self::getDoctype().'<html><body><h1><p>Foo</p></h1></body></html>';
5252
$BOM = \chr(0xEF).\chr(0xBB).\chr(0xBF);
@@ -59,7 +59,7 @@ public function validHtml5Provider(): iterable
5959
yield 'All together' => [$BOM.' <!--c-->'.$html];
6060
}
6161

62-
public function invalidHtml5Provider(): iterable
62+
public static function invalidHtml5Provider(): iterable
6363
{
6464
$html = self::getDoctype().'<html><body><h1><p>Foo</p></h1></body></html>';
6565

Tests/ImageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function testGetUri($url, $currentUri, $expected)
5656
$this->assertEquals($expected, $image->getUri());
5757
}
5858

59-
public function getGetUriTests()
59+
public static function getGetUriTests()
6060
{
6161
return [
6262
['/foo.png', 'http://localhost/bar/foo/', 'http://localhost/foo.png'],

Tests/LinkTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function testGetUriOnLink($url, $currentUri, $expected)
105105
$this->assertEquals($expected, $link->getUri());
106106
}
107107

108-
public function getGetUriTests()
108+
public static function getGetUriTests()
109109
{
110110
return [
111111
['/foo', 'http://localhost/bar/foo/', 'http://localhost/foo'],

Tests/UriResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function testResolver(string $uri, string $baseUri, string $expected)
2424
$this->assertEquals($expected, UriResolver::resolve($uri, $baseUri));
2525
}
2626

27-
public function provideResolverTests()
27+
public static function provideResolverTests()
2828
{
2929
return [
3030
['/foo', 'http://localhost/bar/foo/', 'http://localhost/foo'],

0 commit comments

Comments
 (0)