Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Moving reporters to a directory and updating CakeTestSuiteDispatcher.
  • Loading branch information
markstory committed Jan 6, 2010
1 parent 34ffa43 commit 5bd9734
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cake/tests/lib/cake_test_suite_dispatcher.php
Expand Up @@ -136,11 +136,12 @@ function getManager() {
function &getReporter() {
static $Reporter = NULL;
if (!$Reporter) {
$type = strtolower($this->params['output']);
$coreClass = 'Cake' . ucwords($this->params['output']) . 'Reporter';
$coreFile = CAKE_TESTS_LIB . 'cake_' . strtolower($this->params['output']) . '_reporter.php';
$coreFile = CAKE_TESTS_LIB . 'reporter' . DS . 'cake_' . $type . '_reporter.php';

$appClass = $this->params['output'] . 'Reporter';
$appFile = APPLIBS . 'test_suite' . DS . strtolower($this->params['output']) . '_reporter.php';
$appFile = APPLIBS . 'test_suite' . DS . 'reporter' . DS . $type . '_reporter.php';
if (include_once $coreFile) {
$Reporter =& new $coreClass();
} elseif (include_once $appFile) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5bd9734

Please sign in to comment.