wiki.techinc.nl/includes/libs/filebackend
Timo Tijhof 19dd1a7154 tests: Minor follow-up to MySQLPlatformTest/FileBackendTest php8.1 fixes
Follows I3ea6fb26296f (MySQLPlatformTest):

* Avoid uncertainty and make the code improvable/removable by explaining
  what the suppression is for.

* Remove use of outdated AtEase, which hasn't been used in core tests
  for several months (ref phpcs.xml), and more generally not in new code
  in core or extensions (ref T253461).

Follows I12c17e327628 (FileBackendTest):

* I was going to similarly explain the reason by stating from the linked
  task that it is for preg_match, and I was goingn to move the wholesale
  suppression to just the getMockForAbstractClass() call that constructs
  the FileBackend and thus triggers the issue.

* Instead, I've fixed the constructor to not pass a string there in the first
  place as all non-string values are naturally invalid. Even if there is
  a way to satisfy the regex with a non-string value that casts to a
  valid string, that'd be an invalid value for a FileBackend name as it
  pubicly documented as requiring a string, and internally also stored
  and typed as assumed to be (after validation) a string.

* Change the valid test cases to be more representative of actually
  intended-to-be-valid input, and actually-likely-attempted-but-invalid
  input. The regex permits `[a-zA-Z0-9-_]` yet no numbers, capitals
  or dashes were validated by the test, and no special characters
  rejected by the test.

  This follows If29780653 (c250d07bac) from 2019 which added these test
  cases to improve code coverage without input from any (admitedly,
  non-existent) active maintainers.

Bug: T313663
Change-Id: Ia326e17231a53c7102dcb116817a0c3830c510e4
2022-07-27 18:28:35 -07:00
..
exception Replace "@stable for subclassing" with "@stable to extend" 2020-07-13 11:00:30 +02:00
fileiteration filebackend,jobqueue: Add signature for FilterIterator::accept() 2022-07-06 19:24:59 +00:00
fileop Merge "Fix various documentation related to null types (part II)" 2022-03-09 22:42:42 +00:00
fileophandle build: Enable phan plugin UseReturnValuePlugin 2021-08-26 21:08:19 +00:00
fsfile Replace some more usages of Wikimedia\(suppress|restore)Warnings() 2022-02-24 20:27:46 +00:00
FileBackend.php tests: Minor follow-up to MySQLPlatformTest/FileBackendTest php8.1 fixes 2022-07-27 18:28:35 -07:00
FileBackendMultiWrite.php Add explicit casts between scalar types 2022-03-01 18:19:33 +01:00
FileBackendStore.php filebackend: Check return value of FileBackend::normalizeStoragePath 2022-03-05 19:55:11 +01:00
FileOpBatch.php Remove FileOp batch ID 2021-11-01 15:31:47 +11:00
FSFileBackend.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
HTTPFileStreamer.php phan: Disable scalar_implicit_cast setting 2022-03-18 18:52:24 +00:00
MemoryFileBackend.php Remove some more comments that literally repeat the code 2021-12-09 19:01:36 +01:00
SwiftFileBackend.php Fix many typos in comments 2022-05-10 12:46:11 +00:00