From 0fabbc3d6a9c473b716a93fc8e7a537adb396166 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 2 Mar 2025 16:03:52 +0100 Subject: [PATCH] replace assertEmpty() with stricter assertions --- Tests/Html5ParserCrawlerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Html5ParserCrawlerTest.php b/Tests/Html5ParserCrawlerTest.php index 58c1db8..79b8b51 100644 --- a/Tests/Html5ParserCrawlerTest.php +++ b/Tests/Html5ParserCrawlerTest.php @@ -43,7 +43,7 @@ public function testHtml5ParserWithInvalidHeadedContent(string $content) { $crawler = $this->createCrawler(); $crawler->addHtmlContent($content); - self::assertEmpty($crawler->filterXPath('//h1')->text(), '->addHtmlContent failed as expected'); + self::assertSame('', $crawler->filterXPath('//h1')->text(), '->addHtmlContent failed as expected'); } public function testHtml5ParserNotSameAsNativeParserForSpecificHtml()