Hey,
The 3 components in Wikibase.git (Repo, Client and Lib) are the only ones left with manually maintained autoload classmaps. Time to get rid of them!
I have two commits up for review, one killing the map for Client and one for Lib.
* https://gerrit.wikimedia.org/r/#/c/108638/ * https://gerrit.wikimedia.org/r/#/c/108644/
The effect of these changes is that one has to trigger the rebuild of the classmaps whenever a class is added or moved. This can be done by running "composer update". This is also the case when doing a git pull that brings such changes.
The same has been true for our other components for some time already, though there the inconvenience is mitigated by having the PHPUnit bootstrap file automatically run the "composer update" command.
https://github.com/wmde/WikibaseDataModel/blob/master/tests/bootstrap.php
Unfortunately we do not currently have a working boottsrap file in Wikibase. I poked at this though got a huge pile of errors for some to me unknown reason.
https://gerrit.wikimedia.org/r/#/c/108642/
Ultimately it would be good to have the code in Wikibase.git be properly split and made PSR-0 compliant. If we use PSR-0 based loading, we will not have to deal with any classmap hassle.
Cheers
-- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. ~=[,,_,,]:3 --
Hey,
We are now using this automation for client and lib \o/
In wikibase.git/ you will find a phpunit.xml.dist file which you can use so the wikibase.git/tests/bootstrap.php script is run automatically every time you trigger the tests. Example:
php phpunit.php -c /home/j/www/phase3/extensions/Wikibase/phpunit.xml.dist
Cheers
-- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. ~=[,,_,,]:3 --
wikidata-tech@lists.wikimedia.org