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

PHPUnit 6 compatibility #11

Merged
merged 4 commits into from
Jul 27, 2017
Merged

PHPUnit 6 compatibility #11

merged 4 commits into from
Jul 27, 2017

Conversation

ascii-soup
Copy link
Contributor

This addresses #9 with PHPUnit 6 compatibility. As mentioned in the issue, this is a breaking change as the underlying framework classes now use namespaces.

@mention-bot
Copy link

@ascii-soup, thanks for your PR! By analyzing the history of the files in this pull request, we identified @sjparkinson to be a potential reviewer.

@ascii-soup
Copy link
Contributor Author

I neglected to update the php version constraint in composer.json - this now needs to be 7.0 as that is what phpunit 6 requires. Addressing now...

@ascii-soup
Copy link
Contributor Author

It seems HHVM is no longer supported on the current Ubuntu version used by Travis. Having not really used Travis much, I'm not sure if I should be updating something here or what... Let me know what needs doing and I'll fix it up.

@sjparkinson
Copy link
Contributor

Yep this looks cracking, but as you say a bump to v3.0.0.

@ascii-soup
Copy link
Contributor Author

I think #10 needs to be addressed too, in order for this to be considered "fully compatible" so I'll have a crack at that and see what happens. Watch this space.

@sjparkinson
Copy link
Contributor

With Travis, this looks like a solid guide https://docs.travis-ci.com/user/languages/php/#HHVM-versions.

@sjparkinson
Copy link
Contributor

Though I don't believe it'll need sudo, just the dist addition.

@ascii-soup
Copy link
Contributor Author

It seems we are hitting this issue: composer/composer#4976

Not sure if there's anything to be done about that .... thoughts?

@sjparkinson
Copy link
Contributor

allow_failures for HHVM, go for it!

@sjparkinson
Copy link
Contributor

Or even just drop support, v2 works for that.

@ascii-soup
Copy link
Contributor Author

It's not looking brilliant on the #10 front - sebastianbergmann/phpunit#2744

Perhaps I should've worded the issue differently. Anyway, we'll see if he comes back on that front, otherwise the only option at the moment is to disable the risky test checking when using hamcrest - https://phpunit.de/manual/current/en/risky-tests.html

@sjparkinson
Copy link
Contributor

Yep depending on the response worth an update to README.md.

@ascii-soup
Copy link
Contributor Author

ascii-soup commented Jul 26, 2017 via email

@ascii-soup
Copy link
Contributor Author

README updated, having not had a response on the PHPUnit issue. If anything changes, we can make the necessary updates but for now, I think this is sufficient for PHPUnit 6 compatibility.

Copy link
Contributor

@sjparkinson sjparkinson left a comment

Choose a reason for hiding this comment

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

Cracking 👌

@sjparkinson sjparkinson merged commit 3356cd0 into graze:master Jul 27, 2017
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.

None yet

4 participants