You are here

protected property TestBase::$skipClasses in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/TestBase.php \Drupal\simpletest\TestBase::skipClasses

This class is skipped when looking for the source of an assertion.

When displaying which function an assert comes from, it's not too useful to see "WebTestBase->drupalLogin()', we would like to see the test that called it. So we need to skip the classes defining these helper methods.

File

core/modules/simpletest/src/TestBase.php, line 87
Contains \Drupal\simpletest\TestBase.

Class

TestBase
Base class for Drupal tests.

Namespace

Drupal\simpletest

Code

protected $skipClasses = array(
  __CLASS__ => TRUE,
);