You are here

protected property DrupalTestCase::$skipClasses in SimpleTest 7

Same name and namespace in other branches
  1. 6.2 drupal_web_test_case.php \DrupalTestCase::skipClasses
  2. 7.2 drupal_web_test_case.php \DrupalTestCase::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 "drupalWebTestCase->drupalLogin()', we would like to see the test that called it. So we need to skip the classes defining these helper methods.

File

./drupal_web_test_case.php, line 62

Class

DrupalTestCase
Base class for Drupal tests.

Code

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