prevent deprecation being triggered from assertion
This commit is contained in:
parent
da0e2f94bb
commit
b01a10c760
|
@ -45,7 +45,7 @@ final class CrawlerSelectorTextContains extends Constraint
|
|||
return false;
|
||||
}
|
||||
|
||||
return false !== mb_strpos($crawler->text(), $this->expectedText);
|
||||
return false !== mb_strpos($crawler->text(null, false), $this->expectedText);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -45,7 +45,7 @@ final class CrawlerSelectorTextSame extends Constraint
|
|||
return false;
|
||||
}
|
||||
|
||||
return $this->expectedText === trim($crawler->text());
|
||||
return $this->expectedText === trim($crawler->text(null, false));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in New Issue