Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #379 from shama/patch-code-formatting

Patch code formatting
  • Loading branch information...
commit 4ed218587649dc785beb700862d59e64144df809 2 parents 33773a9 + 54ed278
@markstory markstory authored
Showing with 7 additions and 9 deletions.
  1. +7 −9 lib/Cake/TestSuite/CakeTestSuiteCommand.php
View
16 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 @@ public function run(array $argv, $exit = true) {
$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 @@ public function run(array $argv, $exit = true) {
if (!$result['incomplete']) {
eval(str_replace(array('<?php', '?>'), '', $result['code']));
$suite = new PHPUnit_Framework_TestSuite(
- $this->arguments['test'] . 'Test'
+ $this->arguments['test'] . 'Test'
);
}
}
@@ -108,9 +108,7 @@ public function run(array $argv, $exit = true) {
try {
$result = $runner->doRun($suite, $this->arguments);
- }
-
- catch (PHPUnit_Framework_Exception $e) {
+ } catch (PHPUnit_Framework_Exception $e) {
print $e->getMessage() . "\n";
}
Please sign in to comment.
Something went wrong with that request. Please try again.