diff options
author | Chad Horohoe <demon@users.mediawiki.org> | 2011-06-13 23:43:01 +0000 |
---|---|---|
committer | Chad Horohoe <demon@users.mediawiki.org> | 2011-06-13 23:43:01 +0000 |
commit | eaafdc22281e46d87738a555ab4ef7de663be41b (patch) | |
tree | a50faed216573a118e85a99c682d6c9011627b04 /tests/parser/parserTest.inc | |
parent | 5903e4b2d5f1e76535350eeb8f637aa9c9245edf (diff) | |
download | mediawikicore-eaafdc22281e46d87738a555ab4ef7de663be41b.tar.gz mediawikicore-eaafdc22281e46d87738a555ab4ef7de663be41b.zip |
Convert a couple of wfDie()s to exceptions
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/90021
Diffstat (limited to 'tests/parser/parserTest.inc')
-rw-r--r-- | tests/parser/parserTest.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/parser/parserTest.inc b/tests/parser/parserTest.inc index 55092cde737a..3eae817f781d 100644 --- a/tests/parser/parserTest.inc +++ b/tests/parser/parserTest.inc @@ -1138,14 +1138,13 @@ class ParserTest { $title = Title::newFromText( $name ); if ( is_null( $title ) ) { - wfDie( "invalid title ('$name' => '$title') at line $line\n" ); + throw new MWException( "invalid title ('$name' => '$title') at line $line\n" ); } $aid = $title->getArticleID( Title::GAID_FOR_UPDATE ); if ( $aid != 0 ) { - debug_print_backtrace(); - wfDie( "duplicate article '$name' at line $line\n" ); + throw new MWException( "duplicate article '$name' at line $line\n" ); } $art = new Article( $title ); |