[dokuwiki] New PR: Test Autoloading Cleanup

  • From: "splitbrain" <wiki@xxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 19 Oct 2022 14:18:03 +0200 (CEST)

Hi,

splitbrain opened a new pull request at 
https://github.com/splitbrain/dokuwiki/pull/3812:

Namespacing and autoloading for our tests was a bit messed up. Some classes 
used the wrong `tests` namespace instead of the proper `dokuwiki\test` 
namespace. Our autoloader did not correctly map the namespace to `_test\tests` 
either. This all didn't matter much as long as no test wanted to inherit from 
or use a sibling test - a problem I encountered while working on #3810. The fix 
suggested there in 12ebce974be688ac34bf4389645d5fc7baa29cc7 however was too 
shortsighted and does not work as intended.

This PR fixes the autoloading properly and updates the namespaces for those 
tests that already use a PSR4 style naming. Others will need renaming later on.



Please help us to review this pull request, so new contributors get feedback in 
a timely manner.

135b3d40-4fa8-11ed-9949-b1c2eedc5b8f


-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts:

  • » [dokuwiki] New PR: Test Autoloading Cleanup - splitbrain