protected function Drupal_GoodUnitTest::getTestFiles in Coder 7.2
Returns a list of test files that should be checked.
Return value
array The list of test files.
Overrides CoderSniffUnitTest::getTestFiles
File
- coder_sniffer/
Test/ good/ GoodUnitTest.php, line 47
Class
- Drupal_GoodUnitTest
- Unit test class for all good files that must not throw errors/warnings.
Code
protected function getTestFiles() {
$dir = dirname(__FILE__);
$di = new DirectoryIterator($dir);
foreach ($di as $file) {
$path = $file
->getPathname();
if ($path !== __FILE__ && $file
->isFile()) {
$testFiles[] = $path;
}
}
// Get them in order.
sort($testFiles);
return $testFiles;
}