You are here

private function WebAssert::assertResponseText in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/src/WebAssert.php \Behat\Mink\WebAssert::assertResponseText()

Asserts a condition involving the response text.

Parameters

bool $condition:

string $message Failure message:

Throws

ResponseTextException when the condition is not fulfilled

4 calls to WebAssert::assertResponseText()
WebAssert::pageTextContains in vendor/behat/mink/src/WebAssert.php
Checks that current page contains text.
WebAssert::pageTextMatches in vendor/behat/mink/src/WebAssert.php
Checks that current page text matches regex.
WebAssert::pageTextNotContains in vendor/behat/mink/src/WebAssert.php
Checks that current page does not contains text.
WebAssert::pageTextNotMatches in vendor/behat/mink/src/WebAssert.php
Checks that current page text does not matches regex.

File

vendor/behat/mink/src/WebAssert.php, line 781

Class

WebAssert
Mink web assertions tool.

Namespace

Behat\Mink

Code

private function assertResponseText($condition, $message) {
  if ($condition) {
    return;
  }
  throw new ResponseTextException($message, $this->session
    ->getDriver());
}