aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/unit/includes/xml/XmlTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Add namespace and deprecation alias to Xml and XmlSelectEbrahim Byagowi2024-05-161-2/+2
| | | | | | | | | | This patch introduces a new namespace declaration, MediaWiki\Xml and adds Xml and XmlSelect to it and establishes class aliases marked as deprecated since version 1.43. Bug: T353458 Change-Id: I45cccd540b6e15f267d3ab588a064fbeb719d921
* Html,Xml: Widen `@covers` tagsTimo Tijhof2024-03-301-7/+1
| | | | | | | | | | | | | | | | | | | | > We lose useful coverage and waste valuable time on keeping tags > accurate through refactors (or worse, forget to do so). > > Tracking tiny per-method details wastes time in realizing (and > fixing) when people inevitably don't keep them in sync, and time > lost in finding uncovered code to write tests to realize it was > already covered but "not yet claimed". > > Given all used methods are de-facto and liberally claimed, and > that we keep the coverage limited to the subject class, this > maintains the spirit and intent. PHPUnit offers a more precise > tool when you need it (i.e. when testing legacy monster classes), > but for well-written code, the class-wide tag suffices. Ref https://gerrit.wikimedia.org/r/q/owner:Krinkle+is:merged+message:Widen Change-Id: I60151a0f5a811763fe326e92a18d3dcba8082761
* tests: Fix @covers and @coversDefaultClass to have leading \Reedy2024-02-161-2/+2
| | | | Change-Id: I5629f91387f2ac453ee4341bfe4bba310bd52f03
* tests: Move test cases from /includes/ into sub folderUmherirrender2023-09-131-0/+58
Follow move of the tested class Most moves are part of T321882 Change-Id: I74ab45d6a5331dcb2ff0b65dc2cc7c6315146646