MediaWiki REL1_33
|
Represent the result of a parser test. More...
Public Member Functions | |
__construct ( $test, $expected, $actual) | |
getDescription () | |
isSuccess () | |
Whether the test passed. | |
Public Attributes | |
$actual | |
Actual text rendered. | |
$expected | |
Text that was expected. | |
$test | |
The test info array. | |
Represent the result of a parser test.
Definition at line 14 of file ParserTestResult.php.
ParserTestResult::__construct | ( | $test, | |
$expected, | |||
$actual ) |
array | $test | The test info array from TestIterator |
string | $expected | The normalized expected output |
string | $actual | The actual output |
Definition at line 27 of file ParserTestResult.php.
ParserTestResult::getDescription | ( | ) |
Definition at line 41 of file ParserTestResult.php.
Referenced by ParserTestPrinter\showFailure().
ParserTestResult::isSuccess | ( | ) |
Whether the test passed.
Definition at line 37 of file ParserTestResult.php.
References $actual.
ParserTestResult::$actual |
Actual text rendered.
Definition at line 20 of file ParserTestResult.php.
Referenced by __construct(), and isSuccess().
ParserTestResult::$expected |
Text that was expected.
Definition at line 18 of file ParserTestResult.php.
Referenced by __construct().
ParserTestResult::$test |
The test info array.
Definition at line 16 of file ParserTestResult.php.
Referenced by __construct().