MediaWiki
master
|
Represent the result of a parser test. More...
Public Member Functions | |
__construct ($description) | |
isSuccess () | |
Whether the test passed. More... | |
Public Attributes | |
$actual | |
Actual text rendered. More... | |
$description | |
Description of the parser test. More... | |
$expected | |
Text that was expected. More... | |
Represent the result of a parser test.
Definition at line 14 of file ParserTestResult.php.
ParserTestResult::__construct | ( | $description | ) |
string | $description | A short text describing the parser test usually the text in the parser test .txt file. The description is later available using the property $description. |
Definition at line 33 of file ParserTestResult.php.
References $description.
ParserTestResult::isSuccess | ( | ) |
Whether the test passed.
Definition at line 41 of file ParserTestResult.php.
References $actual.
Referenced by ParserTest\showTestResult().
ParserTestResult::$actual |
Actual text rendered.
Definition at line 26 of file ParserTestResult.php.
Referenced by isSuccess().
ParserTestResult::$description |
Description of the parser test.
This is usually the text used to describe a parser test in the .txt files. It is initialized on a construction and you most probably never want to change it.
Definition at line 22 of file ParserTestResult.php.
Referenced by __construct().
ParserTestResult::$expected |
Text that was expected.
Definition at line 24 of file ParserTestResult.php.