Skip to content
Permalink
Browse files

Changed the order of the include for the custom reporter and added fi…

…le_exists() to prevent errors.
  • Loading branch information...
Phally committed Oct 4, 2011
1 parent 534291a commit 69ba1965b8a4d57ced8f77a8c909fd6a25ac92e7
Showing with 3 additions and 3 deletions.
  1. +3 −3 cake/tests/lib/cake_test_suite_dispatcher.php
@@ -184,10 +184,10 @@ function &getReporter() {
$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;

0 comments on commit 69ba196

Please sign in to comment.
You can’t perform that action at this time.