You are here

protected function BrowserTestBase::runTest in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/BrowserTestBase.php \Drupal\simpletest\BrowserTestBase::runTest()

Override to use Mink exceptions.

Return value

mixed Either a test result or NULL.

Throws

\PHPUnit_Framework_AssertionFailedError When exception was thrown inside the test.

File

core/modules/simpletest/src/BrowserTestBase.php, line 812
Contains \Drupal\simpletest\BrowserTestBase.

Class

BrowserTestBase
Provides a test case for functional Drupal tests.

Namespace

Drupal\simpletest

Code

protected function runTest() {
  try {
    return parent::runTest();
  } catch (Exception $e) {
    throw new \PHPUnit_Framework_AssertionFailedError($e
      ->getMessage());
  }
}