Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1432068
Stats.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
Stats.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment