Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

check extension before passing to addTestFile()

  • Loading branch information...
commit a96e4397beb0dd5e28ac463b630ef1da9f0240e0 1 parent 89959af
Rachman Chavik rchavik authored lorenzo committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/Cake/Test/Case/Console/AllConsoleLibsTest.php
5 lib/Cake/Test/Case/Console/AllConsoleLibsTest.php
View
@@ -38,7 +38,10 @@ public static function suite() {
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.