Skip to content

Commit

Permalink
Merge pull request #1 from Enhance-PHP/master
Browse files Browse the repository at this point in the history
TAP
  • Loading branch information
LewisW committed Jan 4, 2012
2 parents 1286a9e + 17887c8 commit 22ce152
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions EnhanceTestFramework.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,14 +387,14 @@ public function runTests($output)
$this->getTestFixturesByParent();
$this->run();

if(PHP_SAPI === 'cli') {
if(PHP_SAPI === 'cli' && $output != TemplateType::Tap) {
$output = TemplateType::Cli;
}

$OutputTemplate = TemplateFactory::createOutputTemplate($output, $this->Language);
echo $OutputTemplate->get(
$this->Errors,
$this->Results,
$this->Errors,
$this->Results,
$this->Text,
$this->Duration,
$this->MethodCalls
Expand Down

0 comments on commit 22ce152

Please sign in to comment.