hashar edited the task description. (Show Details)
EDIT DETAILS...===
One has to explicitly register them with `Hamcrest\Util::registerGlobalFunctions();`:
```
#use Hamcrest\Matchers;
lang=php
Hamcrest\Util::registerGlobalFunctions();
class BlaTest extends MediaWikiTestCase {
function
hashar edited the task description. (Show Details)
EDIT DETAILS...```
Case that works
Instead of trying to lookup the static method via namespace, if we refer to the canonical class path it seems to work:
```
lang=php
class CanonicalPathTest extends MediaWikiTestCase {
function
hashar edited the task description. (Show Details)
EDIT DETAILS...use Hamcrest\Matchers;...TASK DETAILhttps://phabricator.wikimedia.org/T158674EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: hasharCc: gerritbot, hashar, Addshore, Aleksey_WMDE, aude, Aklapper,
hashar edited the task description. (Show Details)
EDIT DETAILS...```
Other findings
==
vendor/composer/autoload_files.php refers to `$vendorDir . '/mediawiki/at-ease/src/Functions.php'`. That is because at-ease composer.json has:
```
lang=json
"autoload": {
"files": [
hashar edited the task description. (Show Details)
EDIT DETAILS...vendor/composer/autoload_files.php and or composer.lock might end up missing them though :(
Reproduction
=
mediawiki/core
mediawiki/vendor cloned in the `vendor` subdirectory
integration/jenkins
The CI script mw-composer-fetc
hashar edited the task description. (Show Details)
EDIT DETAILS...10:02:33 Fatal error: Call to undefined function Wikibase\Client\Tests\RecentChanges\both() in /srv/jenkins-workspace/workspace/mwext-testextension-hhvm/src/extensions/Wikidata/extensions/Wikibase/client/tests/phpunit/includes/Recent