diff --git a/lib/Cake/TestSuite/CakeTestSuiteCommand.php b/lib/Cake/TestSuite/CakeTestSuiteCommand.php index 0672835fccf..29dfd8f1dbe 100644 --- a/lib/Cake/TestSuite/CakeTestSuiteCommand.php +++ b/lib/Cake/TestSuite/CakeTestSuiteCommand.php @@ -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'];