mediawiki-extensions-Discus.../tests/phpunit
Bartosz Dziewoński af68c835bb Update exception handling for new code conventions
Change code to match the documented consensus formed on T321683:
https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#Exception_handling

* Do not directly throw Exception, Error or MWException
* Document checked exceptions with @throws
* Do not document unchecked exceptions

For this extension, I think it makes sense to consider DOMException an
unchecked exception too (in addition to the usual LogicException and
RuntimeException).

Depends-On: Id07e301c3f20afa135e5469ee234a27354485652
Depends-On: I869af06896b9757af18488b916211c5a41a8c563
Depends-On: I42d9b7465d1406a22ef1b3f6d8de426c60c90e2c
Change-Id: Ic9d9efd031a87fa5a93143f714f0adb20f0dd956
2023-01-22 18:17:11 +00:00
..
integration Add test for DiscussionTools TOC additions 2023-01-19 21:59:50 +00:00
unit Ship HTML test files for JS using 'packageFiles' instead of 'templates' 2022-10-12 22:45:41 +00:00
CommentFormatterTest.php CommentFormatterTest: Fix PHP 8.1 deprecation warning 2022-11-10 23:03:06 +01:00
CommentModifierTest.php Place replies outside transclusions, disallow replying to transcluded comments 2022-11-14 19:17:18 +01:00
CommentParserTest.php Update exception handling for new code conventions 2023-01-22 18:17:11 +00:00
CommentUtilsTest.php Follow-up be012ced: tests: Provide some basic direct tests for CommentUtils::getTitleFromUrl 2022-11-29 15:43:18 -05:00
ContentThreadItemTest.php Only filter code coverage at the class level 2022-09-15 14:08:30 +02:00
EventDispatcherTest.php Only filter code coverage at the class level 2022-09-15 14:08:30 +02:00
IntegrationTestCase.php Set $wgUsePigLatinVariant = false while running tests 2021-12-01 23:25:30 +01:00
LanguageDataTest.php LanguageData: Use special page alias with spaces 2023-01-16 22:27:23 +01:00
MockCommentFormatter.php Use PHP 7.4 property types 2022-10-28 21:56:38 +02:00
MockEventDispatcher.php Separate ContentThreadItem and DatabaseThreadItem etc. 2022-07-04 23:35:50 +02:00
MockLanguageData.php Use PHP 7.4 property types 2022-10-28 21:56:38 +02:00
MockSubscriptionStore.php Automatic topic subscriptions (on any edit) 2021-11-15 22:45:42 +01:00
ServiceWiringTest.php Test ServiceWiring.php 2023-01-13 12:01:38 +00:00
TestUtils.php Use FormatJson helper for outputting pretty JSON for tests 2022-10-12 00:52:52 +02:00
ThreadItemStoreTest.php ThreadItemStoreTest: Add test for old revisions of indistinguishable comments 2022-10-20 03:50:47 +02:00