8000 Avoid phpunit 5.4 warnings on getMock (2.7+) by linaori · Pull Request #19128 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Avoid phpunit 5.4 warnings on getMock (2.7+) #19128

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

Merged
merged 1 commit into from
Jun 21, 2016
Merged

Avoid phpunit 5.4 warnings on getMock (2.7+) #19128

merged 1 commit into from
Jun 21, 2016

Conversation

linaori
Copy link
Contributor
@linaori linaori commented Jun 21, 2016
Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #19125
License MIT
Doc PR ~

Avoids calling getMock() in phpunit 5.4 which will trigger a warning (and thus failing test suite) when used by developers as this TestCase is an extension point.

@linaori linaori changed the title Avoid phpunit 5.4 warnings on getMock Avoid phpunit 5.4 warnings on getMock (2.7+) Jun 21, 2016
@xabbuh
Copy link
Member
xabbuh commented Jun 21, 2016

Is this the only class that would need an update?

@xabbuh
Copy link
Member
xabbuh commented Jun 21, 2016

By the way, according to our new maintenance document we must do this change in the master branch:

Support for newer major versions of Composer dependencies: Taking into account support for newer versions of an existing dependency is not acceptable.

@linaori
Copy link
Contributor Author
linaori commented Jun 21, 2016

@xabbuh I've made a new PR (master) for the other changes as they are only in the master.

This is not a major version though, this is a minor (5.1 vs 5.4), thus I think it should be merged upwards as it's a minor change anyway.

@Tobion
Copy link
Contributor
Tobion commented Jun 21, 2016

👍

1 similar comment
@stof
Copy link
Member
stof commented Jun 21, 2016

👍

@nicolas-grekas
Copy link
Member

Thank you @iltar.

@nicolas-grekas nicolas-grekas merged commit b05014c into symfony:2.7 Jun 21, 2016
nicolas-grekas added a commit that referenced this pull request Jun 21, 2016
This PR was merged into the 2.7 branch.

Discussion
----------

Avoid phpunit 5.4 warnings on getMock (2.7+)

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #19125
| License       | MIT
| Doc PR        | ~

Avoids calling `getMock()` in phpunit 5.4 which will trigger a warning (and thus failing test suite) when used by developers as this TestCase is an extension point.

Commits
-------

b05014c Avoid phpunit 5.4 warnings on getMock
nicolas-grekas added a commit that referenced this pull request Jun 21, 2016
This PR was merged into the 3.2-dev branch.

Discussion
----------

Avoid phpunit 5.4 warnings on getMock (master)

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #19125
| License       | MIT
| Doc PR        | ~

Avoids calling `getMock()` in phpunit 5.4 which will trigger a warning (and thus failing test suite) when used by developers as this TestCase is an extension point.

_in the other branches (opposed to #19128), this was not in the `Test` namespace yet but in `Tests`. Therefore I've only added this in the master as changed by @wouterj in e938361._

Commits
-------

eb8c27e Avoid phpunit 5.4 warnings on getMock
@linaori linaori deleted the fix/phpunit54-compat branch February 8, 2019 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
< BB4 template id="snippet-clipboard-copy-button">
0