Browse files

Fix multibite string preg_replace changes

  • Loading branch information...
1 parent 811418e commit 6e1c4ca2670d57baf1f9d77a0b2027a7a013df00 @livsi livsi committed Mar 26, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Behat/Mink/WebAssert.php
View
4 src/Behat/Mink/WebAssert.php
@@ -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)) {

0 comments on commit 6e1c4ca

Please sign in to comment.