Brad Jorsch
3a19bb8b0c
Document a lot of methods
...
Clear up a bunch of phpcs ignores by documenting many methods.
Also remove Scribunto_LuaError::setLineMap(), which has apparently never
been used since it was added in Ia51f439e.
Change-Id: I763bcdbc7edbbb8e4600495a03acca3439fc0ec9
2020-01-17 23:03:03 +00:00
Umherirrender
ef8aff71ec
Use class name resolution to refer to class names
...
::class is validated by phan and avoids misspelled class names
Change-Id: I613d5df56fcee6099e4294f5c6df078aafad1210
2020-01-02 16:59:55 +00:00
Umherirrender
9c6f6f905a
Split all classes in own files
...
Move autoload entries for test to TestAutoloadClasses key
Change-Id: Ie705db0e7225600b7b498cfa134733a65f1ae1c9
2019-12-21 10:20:18 +01:00
Florian
b0103abfed
Fix type after upgrading to phpunit 7
...
See I77ea560f4a5344bd1c356ecc3e7857968ad829b8
Change-Id: Ie9c83cf44e6555a9ae1f3182fdc3cc4269329fa7
2019-11-21 17:55:05 +01:00
James D. Forrester
4a93593abf
build: Upgrade mediawiki-codesniffer to v28.0.0
...
Change-Id: Ie4cb4cbee163943cd159eb0ad1d7deaac10e68d8
2019-10-11 11:31:29 -07:00
Amir Sarabadani
248dcae392
Split LuaEngineTestBase to LuaEngineUnitTestBase and LuaEngineTestBase
...
And use the unit test base on most of the tests, except the ones that need
database. This makes tests considerably faster.
Bug: T230701
Change-Id: Ifbede1e2610c672b4d8a83ce41f74200e0c97be9
2019-08-31 10:51:26 +02:00
libraryupgrader
8b489ca160
build: Updating mediawiki/mediawiki-codesniffer to 22.0.0
...
And updating CoC link to use Special:MyLanguage (T202047).
Change-Id: I091003f69b82c7cacc4cda320a38b1b07f3cdb6b
2018-09-03 21:33:35 +00:00
Kunal Mehta
f76ba3c465
Disable Squiz.Classes.ValidClassName.NotCamelCaps globally
...
Instead of per-file. This happens to also fix a false positive with the
PhpunitAnnotations sniff.
Change-Id: I22621c37217ed2db9d8b3591df1a1421c25fa7f6
2018-05-24 22:26:11 -07:00
Kunal Mehta
27a7eb0f58
Use namespaced PHPUnit\Framework\TestCase
...
For future compatibility with PHPUnit 6.
Bug: T188166
Change-Id: Id1e951d7e9a2092500408ab865427db45c025bde
2018-02-24 00:23:15 -08:00
Umherirrender
cfbd0a1a1b
Improve some parameter docs
...
Change-Id: Ic85f74fc8dcefe86a3620e2d12f0b2ad2386ee23
2018-01-11 21:27:53 +01:00
Kunal Mehta
31820c673a
Move tests into tests/phpunit and remove UnitTestsList hook
...
This takes advantage of extension.json's unit tests autodiscovery
mechanism.
Bug: T142120
Change-Id: Id526f3368fc73ba7e6ef1d793ea70ab05fbd9517
2017-07-07 13:50:39 -07:00