Skip to content
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

Change $this->assert* to self::assert* in unit tests #8862

Merged
merged 1 commit into from
Aug 3, 2021

Conversation

carnage
Copy link
Contributor

@carnage carnage commented Jul 24, 2021

As discussed in #6854 this PR updates all the unit tests to use self::assert* instead of $this->assert*

This was already done in the v3 develop branch and it'll smooth merging one of the remaining backports.

It was generated using this command: php ./php-cs-fixer-v2.phar fix ./tests/ --rules='{"php_unit_test_case_static_method_calls":{"call_type": "self"}}' --allow-risky=yes I would suggest if there is a delay in merging and conflicts come up, that someone just reruns that on a new branch taken from 2.10.x instead of trying to fix the conflicts.

@greg0ire greg0ire merged commit 692277e into doctrine:2.10.x Aug 3, 2021
@greg0ire greg0ire added this to the 2.10.0 milestone Aug 3, 2021
@greg0ire
Copy link
Member

greg0ire commented Aug 3, 2021

Thanks @carnage !

@carnage carnage deleted the this-to-self branch August 3, 2021 18:41
@carnage
Copy link
Contributor Author

carnage commented Aug 3, 2021

Will try and find time at the weekend to have another go at backporting the test improvements PR now this should solve a lot of the conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants