mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing test loading in cli
This commit is contained in:
parent
9d90c555eb
commit
75a1481e22
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
App::uses('Sanitize', 'Utility');
|
App::uses('Sanitize', 'Utility');
|
||||||
|
App::uses('Router', 'Routing');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception Renderer.
|
* Exception Renderer.
|
||||||
|
|
Loading…
Reference in a new issue