From 4d0fb3374324071ecdd94898367a3fa4b5563162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Sun, 29 Mar 2020 21:12:22 +0200 Subject: [PATCH] [DomCrawler] Fix BC break in assertions breaking Panther --- Test/Constraint/CrawlerSelectorTextContains.php | 2 +- Test/Constraint/CrawlerSelectorTextSame.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Test/Constraint/CrawlerSelectorTextContains.php b/Test/Constraint/CrawlerSelectorTextContains.php index c9d99617..ffc6f567 100644 --- a/Test/Constraint/CrawlerSelectorTextContains.php +++ b/Test/Constraint/CrawlerSelectorTextContains.php @@ -45,7 +45,7 @@ protected function matches($crawler): bool return false; } - return false !== mb_strpos($crawler->text(null, false), $this->expectedText); + return false !== mb_strpos($crawler->text(null, true), $this->expectedText); } /** diff --git a/Test/Constraint/CrawlerSelectorTextSame.php b/Test/Constraint/CrawlerSelectorTextSame.php index 66adadd9..551cdca8 100644 --- a/Test/Constraint/CrawlerSelectorTextSame.php +++ b/Test/Constraint/CrawlerSelectorTextSame.php @@ -45,7 +45,7 @@ protected function matches($crawler): bool return false; } - return $this->expectedText === trim($crawler->text(null, false)); + return $this->expectedText === trim($crawler->text(null, true)); } /**