wiki.techinc.nl/tests/phpunit/unit/includes/utils
Timo Tijhof b862174dc0 UrlUtils: Make assemble() and removeDotSegments() stateless
Follows-up 472a914c63 (I706ef8a50aafb51), which moved various
functions here en-mass, but these two don't require any state.

The warnings about parse_url() in UrlUtils.php have been obsolete
since about PHP 5.4, when it started to support protocol-relative
URLs, non-slash protocols like "mailto", and deal with spaces/newlines
correctly (https://3v4l.org/YWUkl).

Rather than complicate many components that would otherwise remain
stateless and unit-testable, fix these to once again be the static
functions they were.

For impact, see upto PS17 of change I5117eab95f57297eb02bed.

Bug: T227900
Change-Id: Ifb3f720fc429b107348644c98eb9cd8e1113a42a
2023-08-10 03:39:42 +01:00
..
ClassCollectorTest.php
MWRestrictionsTest.php Reorg: Move some of request related classes to MediaWiki/Request 2022-10-28 10:15:31 +00:00
UrlUtilsProviders.php UrlUtilsProviders::provideExpand: use cartesian product 2022-05-16 14:23:11 +10:00
UrlUtilsTest.php UrlUtils: Make assemble() and removeDotSegments() stateless 2023-08-10 03:39:42 +01:00