-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[5.5] Switch to PHPUnit 6 #17755
[5.5] Switch to PHPUnit 6 #17755
Conversation
Looks like lots of namespace related stuff will have to be fixed. |
Yeah, working on that now. |
380e301
to
0608845
Compare
All the changes made to the |
Infact, specifically, the changes also need to be updated to work with the old version too. |
How would you do that?
|
Those things don't matter in our own test suite since we're only using phpunit 6, but changes in our src matter. You'll have to add class exists checks. |
Sorry, I still don't get it. You mean make the Feel free to edit the PR. |
Gah, we should revert the other phpunit changes we made on 5.4 then, and say we only support phpunit 5 on there. |
Someone will have to coherently summarize the actual issue before I can comment. |
I'm not aware of any issues, but Graham probably know this better than me. PHPUnit is PHP7+ only and we already switched from |
too late for that, Laravel 5.4 (Testing) technically only works with PHPUnit 5.7 (which introduce the namespace class in |
PHPUnit 6 is not backward compatible with PHPUnit 5.* What we have in PHPUnit 5.7 is some foward compatibility layer to ease the migration to PHPUnit 6 (that was implemented on #17058) No need to revert nothing in Laravel 5.4, it will continue to work with PHPUnit 5.7. But the upgrade for PHPUnit 6 is only for Laravel 5.5. |
On laravel 5.4 we've killed phpunit 4 support for no reason. |
If you don't have any intention to maintain and check that it's properly working with lower PHPUnit (have different metric on Travis CI to test against 4.8) why even bother. Last I test against lowest, anything lower than 4.8 doesn't work with even earlier version of Laravel (5.3.x if I remember correctly). Laravel 5.3 even requires min PHPUnit 5.4 and above https://packagist.org/packages/laravel/framework#v5.3.0 |
@crynobone No, I'm referring to people using the framework test classes, NOT what version of phpunit the framework uses to test itself. |
I AM TALKING about this, I do maintain Testbench and even I can't really guarantee with Laravel 5.3 Testing Classes would work with other PHPUnit |
Lol, well, just because your package doesn't work with phpunit 4.8, it doesn't mean most of laravel's core testing classes don't work with it. Infact, I'm pretty sure they do work fine. Anyway, that got savage quickly. |
with other than* PHPUnit
Yes, master @GrahamCampbell, boss always win. |
So what's the answer here? Just let Laravel 5.4 ride on PHPUnit 5.7 and then bring in PHPUnit 6 with Laravel 5.5? I'm fine with that if so. |
Yeh, sounds fine. 👍 |
Thanks for all the input guys! |
Sorry, why was this closed? The PR was targeted to 5.5. |
Not sure. |
Switch PHPUnit from 5.7 to 6.0.