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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade PHPUnit from ^6.5 to ^7.5 and all dependencies, including root differ #627

merged 2 commits into from Feb 13, 2019


Copy link

@maks-rafalko maks-rafalko commented Feb 12, 2019

This PR:

  • Upgrades PHPUnit from ^6.5 to ^7.5
  • Upgrades sebastian/diff to ^3.0 (see composer.lock). This returns back diffs with a context lines (lines before and after a modified one 馃帀)
  • Run tests in random order by default

Why not PHPUnit 8.0?

It requires PHP ^7.2 while we support 7.1 yet.

Next steps

Had to upgrade dependencies of one of the e2e test because of fatal error:

PHP Fatal error:  Declaration of PHPUnit\Framework\Constraint\ArrayHasKey::matches($other) must be compatible with PHPUnit\Framework\Constraint\Constraint::matches($other): bool in tests/Fixtures/e2e/Save_PHPUnit_Bootstrap_File/vendor/phpunit/phpunit/src/Framework/Constraint/ArrayHasKey.php on line 83

鈥 sebastian/diff

Run tests in a random order by default
BackEndTea previously approved these changes Feb 12, 2019
Copy link

@BackEndTea BackEndTea left a comment

Assuming CI doesn't report anything, 馃憤

Copy link

@localheinz localheinz left a comment

Looks like --min-msi needs to be adjusted?


[ERROR] The minimum required MSI percentage should be 90%, but actual is 78%.  
Improve your tests!

phpunit.xml.dist Show resolved Hide resolved
Copy link
Member Author

maks-rafalko commented Feb 12, 2019

Looks like --min-msi needs to be adjusted?

that's almost impossible in this case, because Infection is run with empty --filter for this PR (

This is because no PHP source files were modified from src/.

It means that to achieve 90%, I need to do it for the whole project ;) Not feasible indeed.

The goal of this target was to target 90% for the changed files, it just does not work properly with empty filter.

Copy link
Member Author

maks-rafalko commented Feb 12, 2019

misread your comment. Ok - the target MSI for changed files is ok to be 90% (original --min-msi=67 in our .travis.yml).

But it shouldn't be 90% when the --filter is empty. This is the issue, but I guess out of the scope of this PR

@sanmai sanmai mentioned this pull request Feb 13, 2019
1 task
sanmai approved these changes Feb 13, 2019
Copy link
Member Author

maks-rafalko commented Feb 13, 2019

Created #631 for MSI issue.

Thank you.

@maks-rafalko maks-rafalko merged commit 4aeb348 into master Feb 13, 2019
3 of 5 checks passed
@maks-rafalko maks-rafalko deleted the new-phpunit branch Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

4 participants