'Full coder_format tests', 'description' => t('Tests all of the functionality of the coder_format script.'), 'group' => 'Coder Format Tests', ); } function test() { $dir = drupal_get_path('module', 'coder') .'/scripts/coder_format/tests/tests'; $files = array_keys(file_scan_directory($dir, '\.phpt$')); // Order tests alphabetically, but use a weight > 0 to append them after // overall test results. $c = 10; foreach ($files as $file) { $expectation = new CoderTestFile(); $result = $this->assert($expectation, $file, '%s'); if (!$result) { $this->_reporter->writeContent($expectation->render(), $c++); } } } } }