wiki.techinc.nl/tests/phpunit/integration/includes
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
..
block Use real type hints for services etc. in includes/block/ 2024-07-31 08:54:31 +00:00
cache Namespace includes/cache 2024-02-20 10:28:03 -05:00
CommentFormatter Remove deprecated Linker methods 2024-05-15 15:18:07 +00:00
composer composer: Remove localization from unlocalizable LockFileChecker 2024-05-30 19:56:29 +01:00
context tests: Use namespaced classes (@covers) 2024-06-14 00:15:40 +02:00
db rdbms: Increase sleep in test 2024-07-25 16:17:41 +02:00
diff tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
editpage/Constraint Namespace includes/context 2024-02-08 11:07:01 -05:00
export
filerepo Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
Html Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
HTMLForm htmlform: Hard-deprecated HTMLForm::*Text functions 2024-07-26 13:02:21 +02:00
http tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
language language: Widen @covers tags in phpunit tests 2024-06-25 18:51:54 +00:00
libs Replace db with getDb for Tests 2024-06-23 23:47:56 +01:00
logging Tests: Replace "db" with getDb method 2024-06-30 20:24:06 +01:00
mail mail: Improve docs, fix file headers, widen @covers 2024-05-10 19:48:43 +01:00
page Use ::findActorId in RollbackPage when looking up an actor ID 2024-07-26 14:47:07 +01:00
parser Use MainConfigNames constants in tests where possible 2024-07-10 10:11:22 +00:00
Permissions Use real type hints for services etc. in includes/Permissions/ 2024-07-31 08:56:17 +00:00
poolcounter tests: Fix @covers in PoolCounterConnectionManagerTest 2024-03-23 09:57:56 +01:00
RenameUser Add integration test for RenameuserSQL 2023-11-15 09:23:06 +11:00
ResourceLoader Revert "Skip failing ForeignResourceStructureTest" 2024-06-25 19:00:50 +02:00
Rest/Handler [ParsoidParser] Remove unneeded code to set render ID 2024-07-19 16:09:32 -04:00
revisionlist Tests: Replace "db" with getDb method 2024-06-30 20:24:06 +01:00
search tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
specials Change more uses of getDBLoadBalancerFactory() to getConnectionProvider() 2024-01-23 16:34:45 +01:00
Storage Hard deprecate public access to EditPage::internalAttemptSave() 2024-07-21 15:03:54 +00:00
StubObject Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
user Use MainConfigNames constants in tests where possible 2024-07-10 10:11:22 +00:00
utils Add namespace and deprecation alias to FileBackend 2024-05-19 22:35:58 +03:30
watchlist Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
ExtensionJsonTestBase.php tests: Use namespaced classes (2) 2024-06-13 23:21:02 +02:00
ExtensionServicesTestBase.php
MediaWikiEntryPointTest.php tests: Use namespaced classes (2) 2024-06-13 23:21:02 +02:00