Merge pull request #223 from Phally/custom-reporter

Custom reporter
This commit is contained in:
ceeram 2011-10-04 05:39:35 -07:00
commit 499b5e7268

View file

@ -184,10 +184,10 @@ class CakeTestSuiteDispatcher {
$appClass = $this->params['output'] . 'Reporter';
$appFile = APPLIBS . 'test_suite' . DS . 'reporter' . DS . $type . '_reporter.php';
if (include_once $coreFile) {
$Reporter =& new $coreClass(null, $this->params);
} elseif (include_once $appFile) {
if (file_exists($appFile) && include_once $appFile) {
$Reporter =& new $appClass(null, $this->params);
} elseif (include_once $coreFile) {
$Reporter =& new $coreClass(null, $this->params);
}
}
return $Reporter;