Skip to content

Commit

Permalink
Fixing error in testLoader class checking
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Feb 22, 2011
1 parent 4cebe55 commit 6e60216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/TestSuite/CakeTestSuiteCommand.php
Expand Up @@ -41,8 +41,8 @@ class CakeTestSuiteCommand extends PHPUnit_TextUI_Command {
* @param array $params list of options to be used for this run
*/
public function __construct($loader, $params = array()) {
if (!class_exists($loader)) {
throw new MissingTestLoaderException;
if ($loader && !class_exists($loader)) {
throw new MissingTestLoaderException(array('class' => $loader));
}
$this->arguments['loader'] = $loader;
$this->arguments['test'] = $params['case'];
Expand Down

0 comments on commit 6e60216

Please sign in to comment.