Suggest `assertTrue()`/`assertFalse()` over `assertEquals(true|false, ...)`
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 67/100
Research direction
Start by reading the UnspecificEqualsAssertion and UnspecificBooleanAssertion implementations and their tests, especially the behavior described in issue #187. Update the boolean suggestion so it handles assertEquals() and assertNotEquals() directly and points users to assertTrue() or assertFalse(); add or adjust tests to confirm the one step suggestion.
Written by the indexing model from the issue text.
Description
assertEquals(true, $bool) gets UnspecificEqualsAssertion (#187), and after switching to assertSame(true, $bool) it gets UnspecificBooleanAssertion. The boolean suggestion should cover assertEquals()/assertNotEquals() directly, so users go to assertTrue() in one step.
- Dominant language
- Gherkin
- Stars
- 79
- Forks
- 38
- Avg merge
- 6h 52m
- Merged PRs (30d)
- 28
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from psalm/psalm-plugin-phpunit
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
psalm/psalm-plugin-phpunit#220 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
psalm/psalm-plugin-phpunit#219 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
psalm/psalm-plugin-phpunit#216 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 57/100
psalm/psalm-plugin-phpunit#223 ·
Maintainers usually reply within 1 day
-
`MissingParentCall`: also check `assertPreConditions()` and `assertPostConditions()`Possibly taken @alies-dev claimed this today. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
psalm/psalm-plugin-phpunit#221 ·
Maintainers usually reply within 1 day
All issues in psalm/psalm-plugin-phpunit
Similar issues
-
e2e-failure ready-to-code
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
redhat-developer/rhdh-plugin-export-overlays#4733 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
melodic-software/claude-code-plugins#14993 · 2 comments ·
Maintainers usually reply within 1 day
-
quality-assurance
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Paul-Austin-Oswego-CSC480-HCI521/gift-app#228 ·
Maintainers usually reply within 1 day
-
tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
teradata-labs/loom#624 ·
Maintainers usually reply within 1 day