-
Notifications
You must be signed in to change notification settings - Fork 62
PHPUnit 6 #24
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 #24
Conversation
|
Why not put it to {
"require-dev": {
"phpunit/phpunit": "^6.0"
}
} |
|
@TomasVotruba well, changing composer will not test listener together with different PHPUnit versions, it will install PHPUnit 6 only |
|
Why remove the EOL comments? |
|
https://github.com/sebastianbergmann/phpunit/wiki/Preparing-for-PHPUnit-6
It changes a lot, dates moved each minor release, so let's try to support as much as we can. Once old version broke, we stop to support it |
|
@SergeyZ Even with |
|
You can drop Releasing now version doesn't delete old tags. |
|
I would like to release one last stable We could then migrate the listener to support new PHPUnit 6 namespaces, set minimum PHP compatibility to 7.0+ and minimum PHPUnit compatibility to 6.0+. What do you think? |
|
@johnkary What would be different there compared to last version? |
|
@TomasVotruba I double-checked and there were no added features since 1.0.1 tag, so you're right, no need for a 1.1 tag. Let's target 2.0 for PHP 7.0+ and PHPUnit 6.0+. @SergeyZ If you remove older PHP and PHPUnit versions from Travis we can merge this. |
|
Since this is going for a 2.0 release, it looks like the namespacing will need to be updated. Goodbye, "PHPUnit_Framework_TestCase." Hello, "PHPUnit\Framework\TestCase." |
|
@johnkary here is the reason to do 1.1 according to semver Please tag 1.1 and I will update this PR |
|
@johnkary PR is ready |
So, two versions then, 5.7 and 4.7. There was an issue with PHPUnit 5.1 and addWarning method (it was removed first and reverted back afterward) |
|
@SergeyZ I'm a bit confused on which direction this PR is heading. I would like for master branch to move toward v2.0 tag that supports PHP 7.0+ and PHPUnit 6.0+.
You're right, the merged addition of However, the last PR we merged bumped minimum PHP requirement from 5.3 to 5.6. PHPUnit 4.7 allows PHP >= 5.3.3. If we were to release a 1.1 it should probably support 5.3.3+. The last merged PR also added PHPUnit 6 to the build matrix. Right now Travis is failing on master because we haven't yet added PHPUnit 6 namespace support to phpunit-speedtrap Listener. @TomasVotruba has begun work on this in #25. Right now his PR makes all the changes contained in this PR. Is this PR still needed? |
|
I'm trying to fix master and prepare it for 1.1 release. There is no 1.1 maintenance branch ATM, so this PR goes to master. I'm not sure I need to do something related to PHPUnit 6, @TomasVotruba works on it, so PHPUnit 6 removed from Travis in this PR and master branch becomes green once we merge it. Let's create 1.1 branch and tag afterward In case of PHP 5.3 support, we have to tweak matrix because PHPUnit 5.x requires PHP 5.6 according to The best option here is to support PHP 5.3 in 1.0 release branch, PHP 5.6 in 1.1 release branch and master goes for PHP 7 |
|
@SergeyZ I see now, thank you for helping me understand. OK, let's do as you say. After merging this I will:
We can then continue working with @TomasVotruba on #25 to support PHPUnit 6. Sound like a good plan? |
https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-6.0.0
EOL removed, policy changed once again, so lets support as much as we can
https://travis-ci.org/sergeyz/phpunit-speedtrap/builds/199646340