X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fbehat%2Fbehat%2Fsrc%2FBehat%2FBehat%2FOutput%2FNode%2FPrinter%2FJUnit%2FJUnitFeaturePrinter.php;fp=vendor%2Fbehat%2Fbehat%2Fsrc%2FBehat%2FBehat%2FOutput%2FNode%2FPrinter%2FJUnit%2FJUnitFeaturePrinter.php;h=0000000000000000000000000000000000000000;hp=6b6e8718414ce0f445656f40ef4c62371242644a;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/behat/behat/src/Behat/Behat/Output/Node/Printer/JUnit/JUnitFeaturePrinter.php b/vendor/behat/behat/src/Behat/Behat/Output/Node/Printer/JUnit/JUnitFeaturePrinter.php deleted file mode 100644 index 6b6e87184..000000000 --- a/vendor/behat/behat/src/Behat/Behat/Output/Node/Printer/JUnit/JUnitFeaturePrinter.php +++ /dev/null @@ -1,70 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Behat\Behat\Output\Node\Printer\JUnit; - -use Behat\Behat\Output\Node\Printer\FeaturePrinter; -use Behat\Behat\Output\Statistics\PhaseStatistics; -use Behat\Behat\Tester\Result\StepResult; -use Behat\Gherkin\Node\FeatureNode; -use Behat\Testwork\Output\Formatter; -use Behat\Testwork\Output\Printer\JUnitOutputPrinter; -use Behat\Testwork\Tester\Result\TestResult; - -/** - * Prints the element. - * - * @author Wouter J - */ -final class JUnitFeaturePrinter implements FeaturePrinter -{ - /** - * @var PhaseStatistics - */ - private $statistics; - - public function __construct(PhaseStatistics $statistics) - { - $this->statistics = $statistics; - } - - /** - * {@inheritDoc} - */ - public function printHeader(Formatter $formatter, FeatureNode $feature) - { - $stats = $this->statistics->getScenarioStatCounts(); - - if (0 === count($stats)) { - $totalCount = 0; - } else { - $totalCount = array_sum($stats); - } - - /** @var JUnitOutputPrinter $outputPrinter */ - $outputPrinter = $formatter->getOutputPrinter(); - - $outputPrinter->addTestsuite(array( - 'name' => $feature->getTitle(), - 'tests' => $totalCount, - 'skipped' => $stats[TestResult::SKIPPED], - 'failures' => $stats[TestResult::FAILED], - 'errors' => $stats[TestResult::PENDING] + $stats[StepResult::UNDEFINED], - )); - $this->statistics->reset(); - } - - /** - * {@inheritDoc} - */ - public function printFooter(Formatter $formatter, TestResult $result) - { - } -}