MediaWiki  1.23.13
ParserTestResult Class Reference

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...
 

Detailed Description

Represent the result of a parser test.

Since
1.22

Definition at line 15 of file ParserTestResult.php.

Constructor & Destructor Documentation

◆ __construct()

ParserTestResult::__construct (   $description)
Parameters
$descriptionstring 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 34 of file ParserTestResult.php.

References $description.

Member Function Documentation

◆ isSuccess()

ParserTestResult::isSuccess ( )

Whether the test passed.

Returns
bool

Definition at line 42 of file ParserTestResult.php.

References $actual.

Member Data Documentation

◆ $actual

ParserTestResult::$actual

Actual text rendered.

Definition at line 27 of file ParserTestResult.php.

Referenced by isSuccess().

◆ $description

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 23 of file ParserTestResult.php.

Referenced by __construct().

◆ $expected

ParserTestResult::$expected

Text that was expected.

Definition at line 25 of file ParserTestResult.php.


The documentation for this class was generated from the following file: