function DrupalTestCase::DrupalTestCase in SimpleTest 5
Same name and namespace in other branches
- 6 drupal_test_case.php \DrupalTestCase::DrupalTestCase()
File
- ./
drupal_test_case.php, line 17
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 DrupalTestCase($label = NULL) {
if (!$label) {
if (method_exists($this, 'get_info')) {
$info = $this
->get_info();
$label = $info['name'];
}
}
$this
->WebTestCase($label);
}