[DomCrawler] Fix BC break in assertions breaking Panther

This commit is contained in:
Kévin Dunglas 2020-03-29 21:12:22 +02:00
parent b580dd861d
commit 7af07c889e
No known key found for this signature in database
GPG Key ID: 9D0C5D6EEB42C445
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ final class CrawlerSelectorTextContains extends Constraint
return false; return false;
} }
return false !== mb_strpos($crawler->text(null, false), $this->expectedText); return false !== mb_strpos($crawler->text(null, true), $this->expectedText);
} }
/** /**

View File

@ -45,7 +45,7 @@ final class CrawlerSelectorTextSame extends Constraint
return false; return false;
} }
return $this->expectedText === trim($crawler->text(null, false)); return $this->expectedText === trim($crawler->text(null, true));
} }
/** /**