mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
check extension before passing to addTestFile()
This commit is contained in:
parent
5b67534acc
commit
2598d17670
1 changed files with 4 additions and 1 deletions
|
@ -38,7 +38,10 @@ class AllConsoleLibsTest extends PHPUnit_Framework_TestSuite {
|
|||
if (!$file->isFile() || strpos($file, 'All') === 0) {
|
||||
continue;
|
||||
}
|
||||
$suite->addTestFile($file->getRealPath());
|
||||
$fileName = $file->getRealPath();
|
||||
if (substr($fileName, -4) === '.php') {
|
||||
$suite->addTestFile($file->getRealPath());
|
||||
}
|
||||
}
|
||||
return $suite;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue