Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

TAP #1

Merged
merged 1 commit into from

2 participants

@Steve-Fenton

TAP update for Enhance PHP (supports the Test-Anything Protocol)

Signed-off-by: Steve Fenton info@enhance-php.com

Steve Fenton TAP
Signed-off-by: Steve Fenton <info@enhance-php.com>
17887c8
@LewisW LewisW merged commit 22ce152 into LewisW:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 27, 2011
  1. TAP

    Steve Fenton authored
    Signed-off-by: Steve Fenton <info@enhance-php.com>
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 4 deletions.
  1. +4 −4 EnhanceTestFramework.php
View
8 EnhanceTestFramework.php
@@ -297,14 +297,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
Something went wrong with that request. Please try again.