Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MW 1.40 to CI #5507

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
- mediawiki_version: 1.39
database_type: mysql
experimental: true
- mediawiki_version: "1.40"
database_type: mysql
experimental: true

container:
image: mediawiki:${{ matrix.mediawiki_version }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/php-8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
- mediawiki_version: 1.39
database_type: mysql
experimental: true
- mediawiki_version: "1.40"
database_type: mysql
experimental: true

container:
image: mediawiki:${{ matrix.mediawiki_version }}
Expand Down
1 change: 0 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
</testsuite>
<testsuite name="semantic-mediawiki-unit">
<directory>tests/phpunit/includes</directory>
<directory>tests/phpunit/Unit</directory>
</testsuite>
<testsuite name="semantic-mediawiki-integration">
<directory>tests/phpunit/Integration</directory>
Expand Down
12 changes: 6 additions & 6 deletions tests/phpunit/PHPUnitResultPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace SMW\Tests;

use PHPUnit_TextUI_ResultPrinter;
use PHPUnit_Framework_TestSuite;
use MediaWikiPHPUnitResultPrinter;
use PHPUnit\Framework\TestSuite;

class PHPUnitResultPrinter extends PHPUnit_TextUI_ResultPrinter {
class PHPUnitResultPrinter extends MediaWikiPHPUnitResultPrinter {

/**
* @see PHPUnit_TextUI_ResultPrinter::endTestSuite
* @see TestSuite::endTestSuite
*/
public function endTestSuite( PHPUnit_Framework_TestSuite $suite ): void {
public function endTestSuite( TestSuite $suite ): void {
parent::endTestSuite( $suite );

if ( !isset( $suite->_slowTestsReport ) ) {
Expand All @@ -37,7 +37,7 @@ public function endTestSuite( PHPUnit_Framework_TestSuite $suite ): void {
}

$i++;
$this->write( sprintf("\n%-73s%ss", "- $label", $time ) );
$this->write( sprintf( "\n%-73s%ss", "- $label", $time ) );
}

$this->write( "\n\n" );
Expand Down
Loading