You are here

function DrupalTestCase::run in SimpleTest 6

Same name and namespace in other branches
  1. 5 drupal_test_case.php \DrupalTestCase::run()
  2. 6.2 drupal_web_test_case.php \DrupalTestCase::run()
  3. 7.2 drupal_web_test_case.php \DrupalTestCase::run()
  4. 7 drupal_web_test_case.php \DrupalTestCase::run()

Just some info for the reporter

File

./drupal_test_case.php, line 510

Class

DrupalTestCase
Test case for typical Drupal tests. Extends WebTestCase for comfortable browser usage but also implements all UnitTestCase methods, I wish WebTestCase would do this.

Code

function run(&$reporter) {
  $arr = array(
    'class' => get_class($this),
  );
  if (method_exists($this, 'get_info')) {
    $arr = array_merge($arr, $this
      ->get_info());
  }
  $reporter->test_info_stack[] = $arr;
  parent::run($reporter);
  array_pop($reporter->test_info_stack);
}