Skip to content

Commit 452bfc8

Browse files
minor #28025 Use an empty string as default for assertEquals (DavidPrevot)
This PR was merged into the 3.4 branch. Discussion ---------- Use an empty string as default for assertEquals Make sure it isn’t interpreted as a type NULL, making the test fail with PHPUnit 7.2. | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT This shouldn’t break the existing tests, but will also make them work with recent PHPUnit. Commits ------- 31353147a3 Use an empty string as default for assertEquals
2 parents 40bf4ec + e5c1112 commit 452bfc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/CrawlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ public function testParents()
10271027
/**
10281028
* @dataProvider getBaseTagData
10291029
*/
1030-
public function testBaseTag($baseValue, $linkValue, $expectedUri, $currentUri = null, $description = null)
1030+
public function testBaseTag($baseValue, $linkValue, $expectedUri, $currentUri = null, $description = '')
10311031
{
10321032
$crawler = new Crawler('<html><base href="'.$baseValue.'"><a href="'.$linkValue.'"></a></html>', $currentUri);
10331033
$this->assertEquals($expectedUri, $crawler->filterXPath('//a')->link()->getUri(), $description);

0 commit comments

Comments
 (0)