-
Notifications
You must be signed in to change notification settings - Fork 73
Handle mocking objects for both PHPUnit 4 and 5 #226
Conversation
composer.json
Outdated
@@ -17,7 +17,7 @@ | |||
}, | |||
"require": { | |||
"php": ">=5.4.0", | |||
"phpunit/phpunit": "^4.5|^5.0", | |||
"phpunit/phpunit": "^4.5|^5.0|<=6.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^4.5|^5.0
already conflicts with 6.0
(and you allowed for 6.0
by <=
🎉).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not exactly as you wrote - https://getcomposer.org/doc/articles/versions.md#caret
ok, it should work as you wrote
|
||
class XmlConfigurationTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
use PHPUnitHandleDeprecatedMethodsTrait; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comment to remove it after dropping support for PHPUnit 4 will be welcomed :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kill phpunit 4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok 👍
@GrahamCampbell with dropping support for PHPUnit 4 we will drop support for PHP 5.4 and 5.5 |
I'm fine with that. I think PHP 5.6 is a good minimum version to use for the next 2 years or so. |
Update README.md markdown fix Update README.md Add migration notice & update clone URL Update Travis CI and Scrutinizer badges in readme Apply fixes from StyleCI Run Travis builds for all branches Unify version displaying format Add a download counter to the readme (humbug#222) Make Behat tests up and running (humbug#224) Forces humbug to use the phpunit downloaded using Composer. Handle mocking objects for both PHPUnit 4 and 5 (humbug#226) Support for optionally configuring phpunit executable (humbug#155) Change PHAR compression from bz2 to gzip (humbug#205) Allow to be run with phpdbg (humbug#184) Remove white spaces Improve Travis matrix (humbug#207) Support adding env variables; by default use this to disable Symfony deprecation notices. Fixes @42
new PHPUnit 6.0 does not support tap parameter, TAP format is not supported any more in PHPUnit 6 - https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-6.0.md#removed