1.20.x simpletest.module simpletest_test_get_by_class($class)

Get information about a test by its class name.

File

modules/simpletest/simpletest.module, line 402
Provides testing functionality.

Code

function simpletest_test_get_by_class($class) {
  $groups = simpletest_test_get_all();
  foreach ($groups as $classes) {
    if (array_key_exists($class, $classes)) {
      return $classes[$class];
    }
  }
  return FALSE;
}