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

[AddDoesNotPerformAssertionToNonAssertingTestRector] Add failing test for Prophecy assertions. #2640

Conversation

gnutix
Copy link
Contributor

@gnutix gnutix commented Jan 11, 2020

[gnutix] Is this Rector developed with other testing framework than PHPUnit in mind ? (like Prophecy)
[Tomas] Sure, whatever real case this rule should cover.
(from #2634)

Here's a failing test case for this (currently it adds the annotation to the method yet it should not).

However, I'm not interested in implementing a fix myself, as it's ignored from my project anyway and I already wasted way too much time on this one : I'd rather focus on other issues (or take a break 😄 ). I could upgrade this Rector's documentation to state that it currently does not support Prophecy and any help in implementing it is welcome though.

@TomasVotruba
Copy link
Member

However, I'm not interested in implementing a fix myself, as it's ignored from my project anyway and I already wasted way too much time on this one : I'd rather focus on other issues. I could upgrade this Rector's documentation to state that it currently does not support Prophecy and any help in implementing it is welcome though.

No troubles, I'll handle it. Thank you

@TomasVotruba TomasVotruba merged commit 8876a62 into rectorphp:master Jan 11, 2020
@TomasVotruba TomasVotruba deleted the AddDoesNotPerformAssertionToNonAssertingTestRector/prophecy-failing-test branch January 11, 2020 22:21
TomasVotruba added a commit that referenced this pull request Jul 6, 2022
rectorphp/rector-src@7916cd9 [DX] Remove doctrine collection responsibility to TypedPropertyRector (#2640)
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.

2 participants