Commit b9985d8
authored
[CodeQuality] Skip TestCase suffix classes in RemoveNeverUsedMockPropertyRector (#709)
* [CodeQuality] Add BareCreateMockAssignToDirectUseRector to phpunit-mock-to-stub set
* [CodeQuality] Skip TestCase suffix classes in RemoveNeverUsedMockPropertyRector
Abstract *TestCase classes are most likely extended, with mock properties used in child classes. Skip them to avoid removing still-used mocks.1 parent a741141 commit b9985d8
2 files changed
Lines changed: 24 additions & 0 deletions
File tree
- rules-tests/CodeQuality/Rector/Class_/RemoveNeverUsedMockPropertyRector/Fixture
- rules/CodeQuality/Rector/Class_
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
| |||
0 commit comments