Documentation

ConflictSniff.php

Test fixture.

This sniff deliberately causes a fixer conflict with no fixes applied in loop 50. This last part is important as that's the exact situation which needs testing.

Loop 1 applies the fix for BlankLineAfterOpen and then bows out. Loop 2 applies a fix for NewlineEOF. Loop 3 applies a fix for NoNewlineEOF. Loop 4 will try to apply the NewlineEOF fix again, but sees this causes a conflict and skips. Loop 5 will try to apply the NewlineEOF fix again, but sees this causes a conflict and skips. Loop 6 applies a fix for NewlineEOF. Loop 7 will try to apply the NoNewlineEOF fix again, but sees this causes a conflict and skips. Loop 8 applies a fix for NoNewlineEOF. Loop 9 - 13 repeat loop 4 - 8. Loop 14 - 18 repeat loop 4 - 8. Loop 19 - 23 repeat loop 4 - 8. Loop 24 - 28 repeat loop 4 - 8. Loop 29 - 33 repeat loop 4 - 8. Loop 34 - 38 repeat loop 4 - 8. Loop 39 - 43 repeat loop 4 - 8. Loop 44 - 48 repeat loop 4 - 8. Loop 49 = loop 4. Loop 50 = loop 5, i.e. applies no fixes.

Tags
see
FixFileReturnValueTest

Table of Contents

Classes

ConflictSniff
On this page

Search results