Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -193,7 +193,7 @@ protected function parseArgs() { | |
} | ||
|
||
if (isset($this->args[1])) { | ||
$params['case'] = Inflector::underscore($this->args[1]); | ||
$params['case'] = $this->args[1]; | ||
} | ||
return $params; | ||
} | ||
|
@@ -289,8 +289,8 @@ public function available() { | |
$i = 1; | ||
$cases = array(); | ||
foreach ($testCases as $testCaseFile => $testCase) { | ||
$case = explode(DS, str_replace('.test.php', '', $testCase)); | ||
$case[count($case) - 1] = Inflector::camelize($case[count($case) - 1]); | ||
$case = explode(DS, str_replace('Test.php', '', $testCase)); | ||
$case[count($case) - 1] = $case[count($case) - 1]; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
renan
Contributor
|
||
$case = implode('/', $case); | ||
$this->out("[$i] $case"); | ||
$cases[$i] = $case; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
*/ | ||
|
||
App::uses('Sanitize', 'Utility'); | ||
App::uses('Router', 'Routing'); | ||
|
||
/** | ||
* Exception Renderer. | ||
|
refactoring artifact - left and right parts are equal now