Skip to content

Make tests compatible with PHPUnit 4 and 6 #424

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

Merged
merged 2 commits into from
May 17, 2018
Merged

Make tests compatible with PHPUnit 4 and 6 #424

merged 2 commits into from
May 17, 2018

Conversation

legoktm
Copy link
Contributor

@legoktm legoktm commented May 17, 2018

Use the PHPUnit4And6Compat trait from MediaWiki core to make PHPUnit 4
methods work even when being run with PHPUnit 6. If it's being run with
an older MediaWiki core version, define a empty trait in the bootstrap
to avoid fatal errors. Since the lack of the trait means we're running
with PHPUnit 4, everything should work out.

legoktm added 2 commits May 16, 2018 19:00
Use the PHPUnit4And6Compat trait from MediaWiki core to make PHPUnit 4
methods work even when being run with PHPUnit 6. If it's being run with
an older MediaWiki core version, define a empty trait in the bootstrap
to avoid fatal errors. Since the lack of the trait means we're running
with PHPUnit 4, everything should work out.
@JeroenDeDauw
Copy link
Member

Thanks!

@JeroenDeDauw JeroenDeDauw merged commit 978b878 into ProfessionalWiki:master May 17, 2018
@JeroenDeDauw
Copy link
Member

Aaahhh. I should have checked the test output first.

image

@legoktm
Copy link
Contributor Author

legoktm commented May 17, 2018

Like I said on wikitech-l, that's a pre-existing problem on master, before my PR.

@JeroenDeDauw
Copy link
Member

Oh, had not seen your mail yet.

Indeed on current master they are not running, which is the issue I want to fix. This issue has been there since I switched the tests to PHPUnit 6.x+ format. Before that they ran fine https://travis-ci.org/JeroenDeDauw/Maps/builds/363977529

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants