Browse Source

Fixing test loading in cli

Jose Lorenzo Rodriguez 15 years ago
parent
commit
75a1481e22

+ 3 - 3
lib/Cake/Console/Command/TestsuiteShell.php

@@ -193,7 +193,7 @@ class TestsuiteShell extends Shell {
 		}
 
 		if (isset($this->args[1])) {
-			$params['case'] = Inflector::underscore($this->args[1]);
+			$params['case'] = $this->args[1];
 		}
 		return $params;
 	}
@@ -289,8 +289,8 @@ class TestsuiteShell extends Shell {
 		$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];
 			$case = implode('/', $case);
 			$this->out("[$i] $case");
 			$cases[$i] = $case;

+ 1 - 0
lib/Cake/Error/ExceptionRenderer.php

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