Permalink
Browse files

slim down some more logic

  • Loading branch information...
AD7six committed May 28, 2011
1 parent 8b1045a commit 13fe6ec424ed0f04d49a42e6d4b2c235a2fc2bf9
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Console/Command/TestShell.php
@@ -351,10 +351,10 @@ protected function _mapFileToCase($file, $category) {
$testCase = substr($file, 0, -8);
$testCase = str_replace(DS, '/', $testCase);
- if ($testCase = preg_replace('@.*Test\/cases\/@', '', $testCase)) {
+ if ($testCase = preg_replace('@.*Test\/Case\/@', '', $testCase)) {
if ($category === 'core') {
- $testCase = str_replace('lib/Cake/Test/Case/', '', $testCase);
+ $testCase = str_replace('lib/Cake', '', $testCase);
}
return $testCase;

0 comments on commit 13fe6ec

Please sign in to comment.