Skip to content

Commit 4d0fb33

Browse files
committed
[DomCrawler] Fix BC break in assertions breaking Panther
1 parent dedf9a2 commit 4d0fb33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Test/Constraint/CrawlerSelectorTextContains.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function matches($crawler): bool
4545
return false;
4646
}
4747

48-
return false !== mb_strpos($crawler->text(null, false), $this->expectedText);
48+
return false !== mb_strpos($crawler->text(null, true), $this->expectedText);
4949
}
5050

5151
/**

Test/Constraint/CrawlerSelectorTextSame.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function matches($crawler): bool
4545
return false;
4646
}
4747

48-
return $this->expectedText === trim($crawler->text(null, false));
48+
return $this->expectedText === trim($crawler->text(null, true));
4949
}
5050

5151
/**

0 commit comments

Comments
 (0)