wiki.techinc.nl/tests/phpunit/includes/api
Bartosz Dziewoński c045fa0291 Replace gettype() with get_debug_type() in exception messages
get_debug_type() does the same thing but better (spelling type names
in the same way as in type declarations, and including names of
object classes and resource types). It was added in PHP 8, but the
symfony/polyfill-php80 package provides it while we still support 7.4.

Also remove uses of get_class() and get_resource_type() where the new
method already provides the same information.

For reference:
https://www.php.net/manual/en/function.get-debug-type.php
https://www.php.net/manual/en/function.gettype.php

To keep this safe and simple to review, I'm only changing cases where
the type is immediately used in an exception message.

Change-Id: I325efcddcb58be63b1592b9c20ac0845393c15e2
2024-07-31 19:24:39 +02:00
..
format ApiFormatTestBase: Fix test failures with extensions 2024-07-08 00:14:20 +02:00
query Filter temporary accounts as anonymous in ApiQueryRecentChanges 2024-07-29 11:00:22 +01:00
Validator tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiAcquireTempUserNameTest.php Update wgAutoCreateTempUser config defaults 2024-04-03 16:25:47 +00:00
ApiBaseTest.php Namespace MessageSpecifier under Wikimedia\Message\ 2024-07-28 14:21:32 +02:00
ApiBlockInfoTraitTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiBlockTest.php Replace db with getDb for Tests 2024-06-23 23:47:56 +01:00
ApiChangeContentModelTest.php ApiChangeContentModelTest: Disable temp accounts for anon test 2024-06-25 22:01:56 +02:00
ApiCheckTokenTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiClearHasMsgTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiComparePagesTest.php Merge "ApiComparePagesTest: Disable temp accounts for anon tests" 2024-06-25 21:42:55 +00:00
ApiContinuationManagerTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiCreateTempUserTraitTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiCSPReportTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiDeleteTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiDisabledTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiEditPageTest.php ApiEditPageTest#testCreateImageRedirectAnon: Disable temp user feature 2024-06-27 13:42:52 +02:00
ApiEntryPointTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiErrorFormatterTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiFeedRecentChangesTest.php Update help text for 'hideanons' in ApiFeedRecentChanges API 2024-02-22 17:20:28 +00:00
ApiLoginTest.php tests: Migrate to IDatabase::newInsertQueryBuilder 2024-04-14 21:56:07 +02:00
ApiLogoutTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiMainTest.php Add namespace and deprecation alias to FormatJson 2024-05-16 16:28:01 +03:30
ApiMessageTest.php Message: Rename 'interface' prop because of syntax highlighting 2024-06-26 02:04:59 +00:00
ApiMoveTest.php Improve rate limit tests 2024-03-12 14:00:07 +11:00
ApiOpenSearchTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiOptionsTest.php user: Add "global" parameter to ApiOptions 2024-06-13 15:22:47 +00:00
ApiPageSetTest.php api: Hard-deprecate ApiPageSet::get*Titles 2024-07-20 00:11:55 +02:00
ApiParseTest.php ApiParseTest: Set a user in method call that generates log entry 2024-06-26 11:37:48 +00:00
ApiProtectTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiPurgeTest.php api: Add a ratelimit test for action=purge 2024-07-12 22:32:22 +02:00
ApiResultTest.php Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
ApiRevisionDeleteTest.php ApiRevisionDeleteTest: Use registered authority for tests 2024-06-26 10:55:32 +00:00
ApiRollbackTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiSetNotificationTimestampIntegrationTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiStashEditTest.php Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
ApiTestCase.php ApiTestCase: Set request context user to session user 2024-06-26 10:55:32 +00:00
ApiTestContext.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUnblockTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUndeleteTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUploadTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUploadTestCase.php api: Reduce use of WebRequest in action=upload 2024-03-29 21:04:59 +00:00
ApiUsageExceptionTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiUserrightsTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
ApiWatchTest.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
generateRandomImages.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
MockApi.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
MockApiQueryBase.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00
RandomImageGenerator.php tests: Namespace api tests 2024-02-18 15:47:04 +00:00