Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix multibite string preg_replace changes

  • Loading branch information...
commit 6e1c4ca2670d57baf1f9d77a0b2027a7a013df00 1 parent 811418e
LiVsI livsi authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Behat/Mink/WebAssert.php
4 src/Behat/Mink/WebAssert.php
View
@@ -168,7 +168,7 @@ public function statusCodeNotEquals($code)
public function pageTextContains($text)
{
$actual = $this->session->getPage()->getText();
- $actual = preg_replace('/\s+/', ' ', $actual);
+ $actual = preg_replace('/\s+/u', ' ', $actual);
$regex = '/'.preg_quote($text, '/').'/ui';
if (!preg_match($regex, $actual)) {
@@ -187,7 +187,7 @@ public function pageTextContains($text)
public function pageTextNotContains($text)
{
$actual = $this->session->getPage()->getText();
- $actual = preg_replace('/\s+/', ' ', $actual);
+ $actual = preg_replace('/\s+/u', ' ', $actual);
$regex = '/'.preg_quote($text, '/').'/ui';
if (preg_match($regex, $actual)) {
Please sign in to comment.
Something went wrong with that request. Please try again.