diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-05-05 15:30:48 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-05-05 15:30:48 -0400 |
commit | 3d86add3dfa5e0b3ead9859593d4a52cf7555a34 (patch) | |
tree | 453d8bd3fda4dbb3020017ea1a469291da5cdc71 /tests/parser/ParserTestResult.php | |
parent | 064cec79ca4c8201de0d06bbca6cb7a5345d11be (diff) | |
parent | 2e44b49a2db3026050b136de9b00f749dd3ff939 (diff) |
Merge branch 'archwiki'
Diffstat (limited to 'tests/parser/ParserTestResult.php')
-rw-r--r-- | tests/parser/ParserTestResult.php | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/tests/parser/ParserTestResult.php b/tests/parser/ParserTestResult.php deleted file mode 100644 index d9ad773d..00000000 --- a/tests/parser/ParserTestResult.php +++ /dev/null @@ -1,42 +0,0 @@ -<?php -/** - * @copyright Copyright © 2013, Antoine Musso - * @copyright Copyright © 2013, Wikimedia Foundation Inc. - * @license GNU GPL v2 - * - * @file - */ - -/** - * Represent the result of a parser test. - * - * @since 1.22 - */ -class ParserTestResult { - /** - * 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. - */ - public $description; - /** Text that was expected */ - public $expected; - /** Actual text rendered */ - public $actual; - - /** - * @param $description string 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. - */ - public function __construct( $description ) { - $this->description = $description; - } - - /** Whether the test passed */ - public function isSuccess() { - return $this->expected === $this->actual; - } -} |