Skip to content

Commit e5c1112

Browse files
committed
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.
1 parent 54c9e81 commit e5c1112

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)