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

This commit is contained in:
Jose Lorenzo Rodriguez 2011-07-24 14:01:44 -04:30
parent 3589a17321
commit d63dde0fde

View file

@ -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';