Mercurial > hg > cmmr2012-drupal-site
diff vendor/behat/mink/src/WebAssert.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | 5311817fb629 |
children |
line wrap: on
line diff
--- a/vendor/behat/mink/src/WebAssert.php Thu Feb 28 13:11:55 2019 +0000 +++ b/vendor/behat/mink/src/WebAssert.php Thu May 09 15:34:47 2019 +0100 @@ -190,7 +190,7 @@ $actual = $this->session->getResponseHeader($name); $message = sprintf('The text "%s" was not found anywhere in the "%s" response header.', $value, $name); - $this->assert(false !== stripos($actual, $value), $message); + $this->assert(false !== stripos($actual, (string) $value), $message); } /** @@ -206,7 +206,7 @@ $actual = $this->session->getResponseHeader($name); $message = sprintf('The text "%s" was found in the "%s" response header, but it should not.', $value, $name); - $this->assert(false === stripos($actual, $value), $message); + $this->assert(false === stripos($actual, (string) $value), $message); } /** @@ -321,7 +321,7 @@ $actual = $this->session->getPage()->getContent(); $message = sprintf('The string "%s" was not found anywhere in the HTML response of the current page.', $text); - $this->assert(stripos($actual, $text) !== false, $message); + $this->assert(stripos($actual, (string) $text) !== false, $message); } /** @@ -336,7 +336,7 @@ $actual = $this->session->getPage()->getContent(); $message = sprintf('The string "%s" appears in the HTML response of this page, but it should not.', $text); - $this->assert(stripos($actual, $text) === false, $message); + $this->assert(stripos($actual, (string) $text) === false, $message); } /**