[DomCrawler] Fix BC break in assertions breaking Panther
This commit is contained in:
parent
b580dd861d
commit
7af07c889e
@ -45,7 +45,7 @@ final class CrawlerSelectorTextContains extends Constraint
|
||||
return false;
|
||||
}
|
||||
|
||||
return false !== mb_strpos($crawler->text(null, false), $this->expectedText);
|
||||
return false !== mb_strpos($crawler->text(null, true), $this->expectedText);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -45,7 +45,7 @@ final class CrawlerSelectorTextSame extends Constraint
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->expectedText === trim($crawler->text(null, false));
|
||||
return $this->expectedText === trim($crawler->text(null, true));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user