Fixing test loading in cli

This commit is contained in:
Jose Lorenzo Rodriguez 2011-04-11 22:23:03 -04:30
parent 9d90c555eb
commit 75a1481e22
2 changed files with 4 additions and 3 deletions

View file

@ -193,7 +193,7 @@ class TestsuiteShell extends Shell {
} }
if (isset($this->args[1])) { if (isset($this->args[1])) {
$params['case'] = Inflector::underscore($this->args[1]); $params['case'] = $this->args[1];
} }
return $params; return $params;
} }
@ -289,8 +289,8 @@ class TestsuiteShell extends Shell {
$i = 1; $i = 1;
$cases = array(); $cases = array();
foreach ($testCases as $testCaseFile => $testCase) { foreach ($testCases as $testCaseFile => $testCase) {
$case = explode(DS, str_replace('.test.php', '', $testCase)); $case = explode(DS, str_replace('Test.php', '', $testCase));
$case[count($case) - 1] = Inflector::camelize($case[count($case) - 1]); $case[count($case) - 1] = $case[count($case) - 1];
$case = implode('/', $case); $case = implode('/', $case);
$this->out("[$i] $case"); $this->out("[$i] $case");
$cases[$i] = $case; $cases[$i] = $case;

View file

@ -21,6 +21,7 @@
*/ */
App::uses('Sanitize', 'Utility'); App::uses('Sanitize', 'Utility');
App::uses('Router', 'Routing');
/** /**
* Exception Renderer. * Exception Renderer.