Skip to content

Use assertContainsEquals when needed #32969

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
Aug 6, 2019

Conversation

jderusse
Copy link
Member

@jderusse jderusse commented Aug 5, 2019

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #32844
License MIT
Doc PR NA

This PR replaces deprecated paramèter $checkForObjectIdentity of methods assertContains by the dedicated method assertContainsEquals

@yceruto yceruto added this to the 3.4 milestone Aug 5, 2019
@jderusse jderusse force-pushed the deprec-assertContainsEquals branch from d5a24ef to 95ff93c Compare August 5, 2019 22:50
@jderusse jderusse force-pushed the deprec-assertContainsEquals branch from 95ff93c to f842e59 Compare August 5, 2019 23:50
@nicolas-grekas
Copy link
Member

Thank you @jderusse.

@nicolas-grekas nicolas-grekas merged commit f842e59 into symfony:3.4 Aug 6, 2019
nicolas-grekas added a commit that referenced this pull request Aug 6, 2019
This PR was merged into the 3.4 branch.

Discussion
----------

Use assertContainsEquals when needed

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

This PR replaces deprecated paramèter `$checkForObjectIdentity` of methods `assertContains` by the dedicated method `assertContainsEquals`

Commits
-------

f842e59 Use assert assertContainsEquals when needed
@nicolas-grekas nicolas-grekas mentioned this pull request Aug 6, 2019
23 tasks
@jderusse jderusse deleted the deprec-assertContainsEquals branch August 8, 2019 11:36
wmfgerrit pushed a commit to wikimedia/mediawiki-extensions-Wikibase that referenced this pull request Mar 19, 2020
Checking for equality without the check for object identity
($checkForObjectIdentity = false) is deprecated and will be removed in
PHPUnit 9 - a warning was emitted. Use assertContainsEquals instead.

Cf. e.g. symfony/symfony#32969

Change-Id: Id1d30691a1a0793fabfb07b2ae59ec96c9465131
wmfgerrit pushed a commit to wikimedia/mediawiki-extensions that referenced this pull request Mar 19, 2020
* Update Wikibase from branch 'master'
  to 09d9f06850ad52bcfbd1eb62492769ac446f95df
  - Merge "phpunit tests: use assertContainsEquals when needed"
  - phpunit tests: use assertContainsEquals when needed
    
    Checking for equality without the check for object identity
    ($checkForObjectIdentity = false) is deprecated and will be removed in
    PHPUnit 9 - a warning was emitted. Use assertContainsEquals instead.
    
    Cf. e.g. symfony/symfony#32969
    
    Change-Id: Id1d30691a1a0793fabfb07b2ae59ec96c9465131
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.

4 participants