MediaWiki REL1_33
ParserTestResult.php
Go to the documentation of this file.
1<?php
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}
Represent the result of a parser test.
$expected
Text that was expected.
$actual
Actual text rendered.
$test
The test info array.
isSuccess()
Whether the test passed.
__construct( $test, $expected, $actual)