reformatting code.

This commit is contained in:
mark_story 2011-02-12 23:09:47 -05:00
parent 39e05bce4a
commit 9f4597effd

View file

@ -52,14 +52,13 @@ class CakeTestSuiteCommand extends PHPUnit_TextUI_Command {
$this->longOptions['output='] = 'handleReporter'; $this->longOptions['output='] = 'handleReporter';
} }
/** /**
* Ugly hack to get around PHPUnit having a hard coded classname for the Runner. :( * Ugly hack to get around PHPUnit having a hard coded classname for the Runner. :(
* *
* @param array $argv * @param array $argv
* @param boolean $exit * @param boolean $exit
*/ */
public function run(array $argv, $exit = TRUE) public function run(array $argv, $exit = true) {
{
$this->handleArguments($argv); $this->handleArguments($argv);
$runner = new CakeTestRunner($this->arguments['loader'], $this->_params); $runner = new CakeTestRunner($this->arguments['loader'], $this->_params);
@ -81,7 +80,7 @@ class CakeTestSuiteCommand extends PHPUnit_TextUI_Command {
$this->arguments['testFile'] $this->arguments['testFile']
); );
$result = $skeleton->generate(TRUE); $result = $skeleton->generate(true);
if (!$result['incomplete']) { if (!$result['incomplete']) {
eval(str_replace(array('<?php', '?>'), '', $result['code'])); eval(str_replace(array('<?php', '?>'), '', $result['code']));