Skip to content

Commit bd03502

Browse files
committed
update readme
1 parent 72e9330 commit bd03502

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ The **EnforceAaaPatternRector** rule helps maintain consistent **Arrange–Act
2626
}
2727
```
2828

29-
This feature works for:
30-
31-
* Any PHPUnit test method containing at least one `$this->assert*()` call
32-
* Idempotent: existing comments are preserved
33-
* Safe: does not reorder statements, only annotates
29+
This tool simply add comments and removing misplaced ones. Logic is simple: the line just above the first `Assert` call is commented as `Assert`, the first statement above it considered as `Act` and finally the very first line of the test method declaration commented as `Arrange`. So if the comment seems to you misplaced, consider rearrange your test accordingly. Nevertheless contributing is always welcomed
3430

3531
---
3632

0 commit comments

Comments
 (0)