Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Handle mocking objects for both PHPUnit 4 and 5 #226

Merged
merged 6 commits into from Apr 19, 2017
Merged

Handle mocking objects for both PHPUnit 4 and 5 #226

merged 6 commits into from Apr 19, 2017

Conversation

ghost
Copy link

@ghost ghost commented Apr 18, 2017

  • avoid deprecations on mocks
  • require PHPUnit less than 6.0

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

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",
Copy link
Collaborator

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 <= 🎉).

Copy link
Author

@ghost ghost Apr 18, 2017

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;
Copy link
Collaborator

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 :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Kill phpunit 4.

Copy link
Author

Choose a reason for hiding this comment

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

ok 👍

@ghost
Copy link
Author

ghost commented Apr 19, 2017

@GrahamCampbell with dropping support for PHPUnit 4 we will drop support for PHP 5.4 and 5.5

@GrahamCampbell
Copy link
Contributor

@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.

@padraic padraic mentioned this pull request Apr 19, 2017
@theofidry theofidry merged commit 58df20b into humbug:master Apr 19, 2017
@ghost ghost deleted the phpunit-4-and-5-handle-mock-objects branch April 20, 2017 13:15
tabbabi pushed a commit to tabbabi/humbug that referenced this pull request Aug 4, 2017
tabbabi pushed a commit to tabbabi/humbug that referenced this pull request Aug 4, 2017
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
tabbabi pushed a commit to tabbabi/humbug that referenced this pull request Aug 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants