aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/AutoLoaderTest.php
Commit message (Collapse)AuthorAgeFilesLines
* tests: Add missing documentation to class propertiesUmherirrender2024-09-181-0/+2
| | | | | | | | | | Add doc-typehints to class properties found by the PropertyDocumentation sniff to improve the documentation. Once the sniff is enabled it avoids that new code is missing type declarations. This is focused on documentation and does not change code. Change-Id: Ifc27750207edc09e94af030d882b6f1a5369cf98
* tests: Fix @covers and @coversDefaultClass to have leading \Reedy2024-02-161-1/+1
| | | | Change-Id: I5629f91387f2ac453ee4341bfe4bba310bd52f03
* AutoLoader: Drop support for $wgAutoloadAttemptLowercaseKevin Israel2022-12-041-25/+0
| | | | | | | This setting has been deprecated since 1.35. Bug: T231412 Change-Id: I88cb45a2dcbb19c2976824279bf95a66ae9afd91
* tests: Use `overrideConfigValue(s)` where necessaryDerick Alangi2022-07-161-2/+3
| | | | | | | The files in `tests/phpunit/includes/` directory are now all covered. Will do sub-directories of `/includes/` next. Change-Id: I8d5655ce267b6d32cf3c7ee40dc5d2992631b5a6
* AutoLoader: Avoid vague negated assertion for case-insensitive testTimo Tijhof2022-07-091-4/+7
| | | | | | | Follows-up Ifb12e05614a48390b7, for all the reasons laid out in <https://timotijhof.net/posts/2015/qunit-anti-patterns/>. Change-Id: Ia672290f969b61fb85674788cf20839ce24fad42
* AutoLoader: provide methods for registering classesdaniel2022-05-101-5/+19
| | | | | | | | | This introduces static methods for registering classes and namespaces, so we don't have to mess with global variables and static members fields. Bug: T240535 Change-Id: I1abb27bd70898d04c9253e0b7467447fa96d15a4
* build: Updating dependencieslibraryupgrader2021-07-221-2/+2
| | | | | | | | | | | | | | composer: * mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0 The following sniffs now pass and were enabled: * Generic.ControlStructures.InlineControlStructure * MediaWiki.PHPUnit.AssertCount.NotUsed npm: * svgo: 2.3.0 → 2.3.1 * https://npmjs.com/advisories/1754 (CVE-2021-33587) Change-Id: I2a9bbee2fecbf7259876d335f565ece4b3622426
* Add script for resolving class names to filesdaniel2021-04-161-0/+5
| | | | | | | | Use case: for a list of classes used in a specific context such as MediaWikiServices, list all files containing these classes, so they can be processed with command line tools such as grep. Change-Id: I88dbee72dc5a560624f8cc1da0d905460309f624
* MediaWikiTestCase to MediaWikiIntegrationTestCaseaddshore2020-06-301-1/+1
| | | | | | | | | | | | | The name change happened some time ago, and I think its about time to start using the name name! (Done with a find and replace) My personal motivation for doing this is that I have started trying out vscode as an IDE for mediawiki development, and right now it doesn't appear to handle php aliases very well or at all. Change-Id: I412235d91ae26e4c1c6a62e0dbb7e7cf3c5ed4a6
* tests: Add explicit return type void to setUp() and tearDown()Max Semenik2019-10-301-2/+2
| | | | | | Bug: T192167 Depends-On: I581e54278ac5da3f4e399e33f2c7ad468bae6b43 Change-Id: I3a21fb55db76bac51afdd399cf40ed0760e4f343
* Improve AutoLoader test coverageKunal Mehta2018-05-261-0/+16
| | | | Change-Id: Iddb24cad41979a4798392ab08d104dac41ed736d
* Split AutoloaderTest into a structure and class testKunal Mehta2018-05-261-0/+48
AutoloaderTest covers the AutoLoader class, and AutoLoaderStructureTest covers the structure part of the test. Change-Id: Ic4e7bfd670e1c3413631bda31260cc1cc825b1a2