Browse Source

Ensuring the correct HtmlReporter class is used in the web test runner

Jose Lorenzo Rodriguez 14 years ago
parent
commit
d63dde0fde
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/Cake/TestSuite/CakeTestSuiteCommand.php

+ 2 - 1
lib/Cake/TestSuite/CakeTestSuiteCommand.php

@@ -161,7 +161,8 @@ class CakeTestSuiteCommand extends PHPUnit_TextUI_Command {
 		$object = null;
 
 		$type = strtolower($reporter);
-		$coreClass = 'Cake' . ucwords($reporter) . 'Reporter';
+		$reporter = ucwords($reporter);
+		$coreClass = 'Cake' . $reporter . 'Reporter';
 		App::uses($coreClass, 'TestSuite/Reporter');
 
 		$appClass = $reporter . 'Reporter';