At https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/481954/, the build at https://integration.wikimedia.org/ci/job/mediawiki-quibble-vendor-mysql-php70-docker/12101/consoleFull contained the following output:
php tests/phpunit/phpunit.php --debug-tests --exclude-group Broken,ParserFuzz,Stub,Database --log-junit /workspace/log/junit-dbless.xml Using PHP 7.0.30-0+deb9u1 PHP Warning: Declaration of MediaWikiPageNameNormalizerTestMockHttp::get($url, $options = Array, $caller = 'MediaWikiP...') should be compatible with Http::get($url, array $options = Array, $caller = 'Http::get') in /workspace/src/tests/phpunit/includes/site/MediaWikiPageNameNormalizerTest.php on line 103 PHPUnit 6.5.13 by Sebastian Bergmann and contributors. ........................................................... 59 / 12990 ( 0%) ........................................................... 236 / 12990 ( 1%)
There are two reasons this build should've failed:
- Our PHPUnit configuration turns warnings into exceptions, which naturally make the phpunit process exit with errors, and thus fail the build.
- MediaWiki channels any PHP warnings into mw-error.log which our Jenkins job asserts it empty/non-existent, and fails the build if not. / T50002