Skip to content

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

Merged
TomasVotruba merged 1 commit intorectorphp:masterfrom
gnutix:AddDoesNotPerformAssertionToNonAssertingTestRector/prophecy-failing-test
Jan 11, 2020
Merged

[AddDoesNotPerformAssertionToNonAssertingTestRector] Add failing test for Prophecy assertions.#2640
TomasVotruba merged 1 commit intorectorphp:masterfrom
gnutix:AddDoesNotPerformAssertionToNonAssertingTestRector/prophecy-failing-test

Conversation

@gnutix
Copy link
Copy Markdown
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
Copy Markdown
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