Permalink
Browse files

Merge pull request #322 from livsi/develop

Fix multibite string preg_replace changes
  • Loading branch information...
2 parents 811418e + 6e1c4ca commit 0fdb6c102c421105e177addebdbcfb0a070acbc3 @everzet everzet committed Mar 26, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 0fdb6c1

Please sign in to comment.