Skip to content

Commit 0fabbc3

Browse files
committed
replace assertEmpty() with stricter assertions
1 parent 19cc7b0 commit 0fabbc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Html5ParserCrawlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testHtml5ParserWithInvalidHeadedContent(string $content)
4343
{
4444
$crawler = $this->createCrawler();
4545
$crawler->addHtmlContent($content);
46-
self::assertEmpty($crawler->filterXPath('//h1')->text(), '->addHtmlContent failed as expected');
46+
self::assertSame('', $crawler->filterXPath('//h1')->text(), '->addHtmlContent failed as expected');
4747
}
4848

4949
public function testHtml5ParserNotSameAsNativeParserForSpecificHtml()

0 commit comments

Comments
 (0)