X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FMediaWikiPHPUnitCommand.php;h=6b1d8177e5801235cc08fbb8f1ccedb125b934d3;hb=3b0effb20334f19f662aed6760ddfe7d4b43c6d6;hp=897919541d0dc9c70464bfdae5e86f346174f6d0;hpb=383a925f682d00d7218a5a36167d4d038a553b13;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/MediaWikiPHPUnitCommand.php b/tests/phpunit/MediaWikiPHPUnitCommand.php index 897919541d..6b1d8177e5 100644 --- a/tests/phpunit/MediaWikiPHPUnitCommand.php +++ b/tests/phpunit/MediaWikiPHPUnitCommand.php @@ -18,11 +18,18 @@ class MediaWikiPHPUnitCommand extends PHPUnit_TextUI_Command { $this->arguments['configuration'] = __DIR__ . '/suite.xml'; } - // Add our own listener + // Add our own listeners $this->arguments['listeners'][] = new MediaWikiPHPUnitTestListener; + $this->arguments['listeners'][] = new MediaWikiLoggerPHPUnitTestListener; // Output only to stderr to avoid "Headers already sent" problems $this->arguments['stderr'] = true; + + // Use a custom result printer that includes per-test logging output + // when nothing is provided. + if ( !isset( $this->arguments['printer'] ) ) { + $this->arguments['printer'] = MediaWikiPHPUnitResultPrinter::class; + } } protected function createRunner() {