From 54ed278284a26215edf861ef6fb585aa7052c6ba Mon Sep 17 00:00:00 2001 From: Kyle Robinson Young Date: Wed, 14 Dec 2011 22:54:03 -0800 Subject: [PATCH] Code formatting --- lib/Cake/TestSuite/CakeTestSuiteCommand.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/lib/Cake/TestSuite/CakeTestSuiteCommand.php b/lib/Cake/TestSuite/CakeTestSuiteCommand.php index cc463b72b..5e7b78ef6 100644 --- a/lib/Cake/TestSuite/CakeTestSuiteCommand.php +++ b/lib/Cake/TestSuite/CakeTestSuiteCommand.php @@ -40,7 +40,7 @@ class CakeTestSuiteCommand extends PHPUnit_TextUI_Command { */ public function __construct($loader, $params = array()) { if ($loader && !class_exists($loader)) { - throw new MissingTestLoaderException(array('class' => $loader)); + throw new MissingTestLoaderException(array('class' => $loader)); } $this->arguments['loader'] = $loader; $this->arguments['test'] = $params['case']; @@ -67,15 +67,15 @@ class CakeTestSuiteCommand extends PHPUnit_TextUI_Command { $suite = $this->arguments['test']; } else { $suite = $runner->getTest( - $this->arguments['test'], - $this->arguments['testFile'] + $this->arguments['test'], + $this->arguments['testFile'] ); } if (count($suite) == 0) { $skeleton = new PHPUnit_Util_Skeleton_Test( - $suite->getName(), - $this->arguments['testFile'] + $suite->getName(), + $this->arguments['testFile'] ); $result = $skeleton->generate(true); @@ -83,7 +83,7 @@ class CakeTestSuiteCommand extends PHPUnit_TextUI_Command { if (!$result['incomplete']) { eval(str_replace(array(''), '', $result['code'])); $suite = new PHPUnit_Framework_TestSuite( - $this->arguments['test'] . 'Test' + $this->arguments['test'] . 'Test' ); } } @@ -108,9 +108,7 @@ class CakeTestSuiteCommand extends PHPUnit_TextUI_Command { try { $result = $runner->doRun($suite, $this->arguments); - } - - catch (PHPUnit_Framework_Exception $e) { + } catch (PHPUnit_Framework_Exception $e) { print $e->getMessage() . "\n"; }