Page MenuHomeWickedGov Phorge

Stats.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

Stats.php

<?php
declare( strict_types = 1 );
namespace Wikimedia\Parsoid\ParserTests;
class Stats {
/** @var float */
public $startTime;
/** @var Stats[] */
public $modes;
/** @var int */
public $passedTests = 0;
/** @var int */
public $passedTestsUnexpected = 0;
/** @var int */
public $failedTests = 0;
/** @var int */
public $failedTestsUnexpected = 0;
/** @var int */
public $loggedErrorCount = 0;
/** @var int */
public $failures = 0;
/** @var array Array of elements representing test failures */
public $failList;
/** @var string result */
public $result;
public function __construct() {
$this->startTime = microtime( true );
}
public function allFailures(): int {
$this->failures = $this->passedTestsUnexpected +
$this->failedTestsUnexpected + $this->loggedErrorCount;
return $this->failures;
}
public function accum( Stats $other ): void {
$this->passedTests += $other->passedTests;
$this->passedTestsUnexpected += $other->passedTestsUnexpected;
$this->failedTests += $other->failedTests;
$this->failedTestsUnexpected += $other->failedTestsUnexpected;
$this->loggedErrorCount += $other->loggedErrorCount;
$this->failures += $other->failures;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, May 16, 21:24 (1 d, 10 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
18/41/67c8efafc127cab945c547122c1a
Default Alt Text
Stats.php (1 KB)

Event Timeline