Permalink
Browse files

Merge pull request #223 from Phally/custom-reporter

Custom reporter
  • Loading branch information...
2 parents 534291a + 69ba196 commit 499b5e7268b82adf30bf102ce4a09e594b5067f4 @ceeram ceeram committed Oct 4, 2011
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 499b5e7

Please sign in to comment.