Merge "phpunit: Move "Logs generated by test" from middle to end of result"
This commit is contained in:
commit
e7b6ee8b1c
1 changed files with 1 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ use PHPUnit\TextUI\ResultPrinter;
|
|||
|
||||
class MediaWikiPHPUnitResultPrinter extends ResultPrinter {
|
||||
protected function printDefectTrace( TestFailure $defect ) : void {
|
||||
parent::printDefectTrace( $defect );
|
||||
$test = $defect->failedTest();
|
||||
if ( $test !== null && isset( $test->_formattedMediaWikiLogs ) ) {
|
||||
$log = $test->_formattedMediaWikiLogs;
|
||||
|
|
@ -12,6 +13,5 @@ class MediaWikiPHPUnitResultPrinter extends ResultPrinter {
|
|||
$this->write( "=== Logs generated by test case\n{$log}\n===\n" );
|
||||
}
|
||||
}
|
||||
parent::printDefectTrace( $defect );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue