fixed unassigned "show passes" parameter for test

This commit is contained in:
hiromi2424 2011-07-09 18:40:22 +09:00
parent a69fccabf6
commit 9e79756b1f
2 changed files with 2 additions and 1 deletions

View file

@ -235,6 +235,7 @@ class CakeTestSuiteDispatcher {
'app' => $this->params['app'],
'plugin' => $this->params['plugin'],
'codeCoverage' => $this->params['codeCoverage'],
'showPasses' => !empty($this->params['show_passes']),
'baseUrl' => $this->_baseUrl,
'baseDir' => $this->_baseDir,
);

View file

@ -249,7 +249,7 @@ class CakeHtmlReporter extends CakeBaseReporter {
* @return void
*/
public function paintPass(PHPUnit_Framework_Test $test, $time = null) {
if (isset($this->params['show_passes']) && $this->params['show_passes']) {
if (isset($this->params['showPasses']) && $this->params['showPasses']) {
echo "<li class='pass'>\n";
echo "<span>Passed</span> ";