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-fetch-dev.sh grabs the list of packages from require-dev and then require them in the `vendor` subdirectory.

The dev dependencies:
```
(cd vendor; ~/projects/integration/jenkins/tools/composer-dev-args.js ~/projects/mediawiki/core/composer.json)
/Users/amusso/projects/mediawiki/core/vendor
composer/spdx-licenses=1.1.4
jakub-onderka/php-parallel-lint=0.9.2
justinrainbow/json-schema=~3.0
mediawiki/mediawiki-codesniffer=0.7.2
jetbrains/phpstorm-stubs=dev-master#1b9906084d6635456fcf3f3a01f0d7d5b99a578a
monolog/monolog=~1.18.2
nikic/php-parser=2.1.0
nmred/kafka-php=0.1.5
phpunit/phpunit=4.8.31
wikimedia/avro=1.7.7
hamcrest/hamcrest-php=^2.0
wmde/hamcrest-html-matchers=^0.1.0
```

For each we invoke `composer require --dev --ansi --no-progress --prefer-dist -v` . The result is available as https://gerrit.wikimedia.org/r/339404

Then `(cd vendor && composer dump-autoload --optimize)` which apparently is a noop.


Given a dummy test file:
```
lang=php, name=tests/phpunit/BlaTest.php
<?php

use Hamcrest\Matcher;

class BlaTest extends MediaWikiTestCase {

function testHamcrest() {
both();
}

}
```

That fails to load one of Hamcrest function:
```
$ php tests/phpunit/phpunit.php tests/phpunit/BlaTest.php
PHPUnit 4.8.31 by Sebastian Bergmann and contributors.

PHP Fatal error: Call to undefined function both() in /Users/amusso/projects/mediawiki/core/tests/phpunit/BlaTest.php on line 8
```



TASK DETAIL
https://phabricator.wikimedia.org/T158674

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: hashar
Cc: gerritbot, hashar, Addshore, Aleksey_WMDE, aude, Aklapper, Th3d3v1ls, Ramalepe, Liugev6, Lewizho99, Maathavan, D3r1ck01, Izno, Wikidata-bugs, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to