diff options
author | Reedy <reedy@wikimedia.org> | 2014-12-24 13:49:20 +0000 |
---|---|---|
committer | Reedy <reedy@wikimedia.org> | 2014-12-24 13:49:20 +0000 |
commit | 4d9143c7f55857377da353bb114ed44c491af2a6 (patch) | |
tree | 91b1cb544f5fb53cd78aa5a1f929eba4fe188a20 /tests/parser/parserTest.inc | |
parent | a3ce362ffd701a4630b47d458747d717bdf89c79 (diff) | |
download | mediawikicore-4d9143c7f55857377da353bb114ed44c491af2a6.tar.gz mediawikicore-4d9143c7f55857377da353bb114ed44c491af2a6.zip |
Add lots of @throws
Change-Id: I09d0c13070f966fcf23d2638d8fc1328279a5995
Diffstat (limited to 'tests/parser/parserTest.inc')
-rw-r--r-- | tests/parser/parserTest.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/parser/parserTest.inc b/tests/parser/parserTest.inc index cf03ad1b3e2d..17769ad47ea5 100644 --- a/tests/parser/parserTest.inc +++ b/tests/parser/parserTest.inc @@ -1493,8 +1493,10 @@ class ParserTest { * Insert a temporary test article * @param string $name The title, including any prefix * @param string $text The article text - * @param int $line The input line number, for reporting errors - * @param bool $ignoreDuplicate Whether to silently ignore duplicate pages + * @param int|string $line The input line number, for reporting errors + * @param bool|string $ignoreDuplicate Whether to silently ignore duplicate pages + * @throws Exception + * @throws MWException */ public static function addArticle( $name, $text, $line = 'unknown', $ignoreDuplicate = '' ) { global $wgCapitalLinks; |