MediaWiki
REL1_31
ParserTestResult.php
Go to the documentation of this file.
1
<?php
14
class
ParserTestResult
{
16
public
$test
;
18
public
$expected
;
20
public
$actual
;
21
27
public
function
__construct
(
$test
,
$expected
,
$actual
) {
28
$this->test =
$test
;
29
$this->expected =
$expected
;
30
$this->actual =
$actual
;
31
}
32
37
public
function
isSuccess
() {
38
return
$this->expected ===
$this->actual
;
39
}
40
41
public
function
getDescription
() {
42
return
$this->test[
'desc'
];
43
}
44
}
ParserTestResult
Represent the result of a parser test.
Definition
ParserTestResult.php:14
ParserTestResult\$expected
$expected
Text that was expected.
Definition
ParserTestResult.php:18
ParserTestResult\$actual
$actual
Actual text rendered.
Definition
ParserTestResult.php:20
ParserTestResult\$test
$test
The test info array.
Definition
ParserTestResult.php:16
ParserTestResult\isSuccess
isSuccess()
Whether the test passed.
Definition
ParserTestResult.php:37
ParserTestResult\getDescription
getDescription()
Definition
ParserTestResult.php:41
ParserTestResult\__construct
__construct( $test, $expected, $actual)
Definition
ParserTestResult.php:27
tests
parser
ParserTestResult.php
Generated on Mon Nov 25 2024 15:36:10 for MediaWiki by
1.10.0