Skip to content

Conversation

@Prometee
Copy link
Contributor

This pull request includes changes to the rules-tests/Rector/Class_/PromisesToAssertsRector/Fixture/should_be_instance_of.php.inc and src/Enum/ProphecyPromisesToPHPUnitAssertMap.php files to enhance the conversion of PhpSpec promises to PHPUnit assertions. The most important changes include adding new test cases and updating the mapping of promises to assertions.

Enhancements to test cases:

Updates to promise-to-assertion mapping:

@Prometee
Copy link
Contributor Author

@TomasVotruba ready to review for this one too.

@Prometee Prometee changed the title Add shouldImplement and related missing tests Add shouldImplement and related missing tests Mar 28, 2025
@TomasVotruba
Copy link
Member

Beautiful work! Tidy code and simple test 👏 thank you

@TomasVotruba TomasVotruba merged commit 2641a25 into rectorphp:main Mar 28, 2025
5 checks passed
@Prometee Prometee deleted the add-shouldImplement branch March 28, 2025 18:03
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