Skip to content

Use modern phpunit #56

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
Jun 28, 2017
Merged

Use modern phpunit #56

merged 2 commits into from
Jun 28, 2017

Conversation

remicollet
Copy link
Contributor

@remicollet remicollet commented Jun 27, 2017

Allow 4.8.35, 5.7, 6.0 which all have the forward compatibility layer

So

  • 4.8 will be used with old PHP version (<5.6)
  • 5.7 will be used with PHP 5.6
  • 6.0 will be used with PHP 7+

7.2 enabled in travis.

Copy link
Member

@mnapoli mnapoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I have noted 2 questions inline

- hhvm

matrix:
allow_failures:
- php: hhvm
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That change means that HHVM is no longer supported, is there a reason for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it fails ;)
And lot of projects slowly drop support for it (including Symfony which is in the dep tree)

@@ -40,14 +40,11 @@ public function testGetKey()

/**
* @dataProvider invalidValueProvider
* @expectedException UnexpectedValueException
* @expectedExceptionMessage is not part of the enum MyCLabs\Tests\Enum\EnumFixture
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test is not the same, the first part of the message is not tested anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but didn't find any other way

@mnapoli mnapoli mentioned this pull request Jun 27, 2017
@remicollet
Copy link
Contributor Author

Notice, this PR is mostly required to run test suite with modern PHP version, as various fix for 7.1, 7.2.. are only available in latest PHPUnit

So using old PHPUnit 4 with recent PHP versions will probably raise some failures.

@mnapoli
Copy link
Member

mnapoli commented Jun 28, 2017

Thank you for the pull request

@mnapoli mnapoli merged commit 3ed7088 into myclabs:master Jun 28, 2017
@remicollet remicollet deleted the issue-phpunit branch June 29, 2017 05:03
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