X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/19e297c21b10b1b8a3acad5e73fc71dcb35db44a..6932310fd58ebef145fa01eb76edf7150284d8ea:/tests/parser/ParserTestResult.php diff --git a/tests/parser/ParserTestResult.php b/tests/parser/ParserTestResult.php new file mode 100644 index 00000000..6396a018 --- /dev/null +++ b/tests/parser/ParserTestResult.php @@ -0,0 +1,44 @@ +test = $test; + $this->expected = $expected; + $this->actual = $actual; + } + + /** + * Whether the test passed + * @return bool + */ + public function isSuccess() { + return $this->expected === $this->actual; + } + + public function getDescription() { + return $this->test['desc']; + } +}