From 6e60216c1378873a50f97c3f4c76fd73ddc578f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=CC=81=20Lorenzo=20Rodri=CC=81guez?= Date: Mon, 21 Feb 2011 22:43:49 -0430 Subject: [PATCH] Fixing error in testLoader class checking --- lib/Cake/TestSuite/CakeTestSuiteCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'];