@@ -101,7 +101,8 @@ public function testInvalidStartHeader3(): void
101
101
-A
102
102
+B
103
103
" . '
104
- ' );
104
+ '
105
+ );
105
106
}
106
107
107
108
public function testInvalidStartHeader4 (): void
@@ -116,7 +117,8 @@ public function testInvalidStartHeader4(): void
116
117
-A
117
118
+B
118
119
' . '
119
- ' );
120
+ '
121
+ );
120
122
}
121
123
122
124
public function testInvalidLine1 (): void
@@ -131,7 +133,8 @@ public function testInvalidLine1(): void
131
133
-Z
132
134
1
133
135
+U
134
- ' );
136
+ '
137
+ );
135
138
}
136
139
137
140
public function testInvalidLine2 (): void
@@ -145,7 +148,8 @@ public function testInvalidLine2(): void
145
148
@@ -8 +8 @@
146
149
147
150
148
- ' );
151
+ '
152
+ );
149
153
}
150
154
151
155
public function testHunkInvalidFormat (): void
@@ -159,7 +163,8 @@ public function testHunkInvalidFormat(): void
159
163
@@ INVALID -1,1 +1,1 @@
160
164
-Z
161
165
+U
162
- ' );
166
+ '
167
+ );
163
168
}
164
169
165
170
public function testHunkOverlapFrom (): void
@@ -176,7 +181,8 @@ public function testHunkOverlapFrom(): void
176
181
@@ -7,1 +9,1 @@
177
182
-Z
178
183
+U
179
- ' );
184
+ '
185
+ );
180
186
}
181
187
182
188
public function testHunkOverlapTo (): void
@@ -193,7 +199,8 @@ public function testHunkOverlapTo(): void
193
199
@@ -17,1 +7,1 @@
194
200
-Z
195
201
+U
196
- ' );
202
+ '
203
+ );
197
204
}
198
205
199
206
public function testExpectHunk1 (): void
@@ -208,7 +215,8 @@ public function testExpectHunk1(): void
208
215
-Z
209
216
+U
210
217
+O
211
- ' );
218
+ '
219
+ );
212
220
}
213
221
214
222
public function testExpectHunk2 (): void
@@ -223,7 +231,8 @@ public function testExpectHunk2(): void
223
231
' . '
224
232
' . '
225
233
@@ -38,12 +48,12 @@
226
- ' );
234
+ '
235
+ );
227
236
}
228
237
229
238
public function testMisplacedLineAfterComments1 (): void
@@ -240,7 +249,8 @@ public function testMisplacedLineAfterComments1(): void
240
249
+U
241
250
\ No newline at end of file
242
251
+A
243
- ' );
252
+ '
253
+ );
244
254
}
245
255
246
256
public function testMisplacedLineAfterComments2 (): void
@@ -256,7 +266,8 @@ public function testMisplacedLineAfterComments2(): void
256
266
\ No newline at end of file
257
267
\ No newline at end of file
258
268
\ No newline at end of file
259
- ' );
269
+ '
270
+ );
260
271
}
261
272
262
273
public function testMisplacedLineAfterComments3 (): void
@@ -272,7 +283,8 @@ public function testMisplacedLineAfterComments3(): void
272
283
\ No newline at end of file
273
284
\ No newline at end of file
274
285
+A
275
- ' );
286
+ '
287
+ );
276
288
}
277
289
278
290
public function testMisplacedComment (): void
@@ -282,7 +294,8 @@ public function testMisplacedComment(): void
282
294
283
295
$ this ->assertValidUnifiedDiffFormat (
284
296
'\ No newline at end of file
285
- ' );
297
+ '
298
+ );
286
299
}
287
300
288
301
public function testUnexpectedDuplicateNoNewLineEOF (): void
@@ -299,7 +312,8 @@ public function testUnexpectedDuplicateNoNewLineEOF(): void
299
312
\ No newline at end of file
300
313
' . '
301
314
\ No newline at end of file
302
- ' );
315
+ '
316
+ );
303
317
}
304
318
305
319
public function testFromAfterClose (): void
@@ -315,7 +329,8 @@ public function testFromAfterClose(): void
315
329
\ No newline at end of file
316
330
-A
317
331
\ No newline at end of file
318
- ' );
332
+ '
333
+ );
319
334
}
320
335
321
336
public function testSameAfterFromClose (): void
@@ -331,7 +346,8 @@ public function testSameAfterFromClose(): void
331
346
\ No newline at end of file
332
347
A
333
348
\ No newline at end of file
334
- ' );
349
+ '
350
+ );
335
351
}
336
352
337
353
public function testToAfterClose (): void
@@ -347,7 +363,8 @@ public function testToAfterClose(): void
347
363
\ No newline at end of file
348
364
+A
349
365
\ No newline at end of file
350
- ' );
366
+ '
367
+ );
351
368
}
352
369
353
370
public function testSameAfterToClose (): void
@@ -363,7 +380,8 @@ public function testSameAfterToClose(): void
363
380
\ No newline at end of file
364
381
A
365
382
\ No newline at end of file
366
- ' );
383
+ '
384
+ );
367
385
}
368
386
369
387
public function testUnexpectedEOFFromMissingLines (): void
@@ -378,7 +396,8 @@ public function testUnexpectedEOFFromMissingLines(): void
378
396
-A
379
397
+B
380
398
' . '
381
- ' );
399
+ '
400
+ );
382
401
}
383
402
384
403
public function testUnexpectedEOFToMissingLines (): void
@@ -393,7 +412,8 @@ public function testUnexpectedEOFToMissingLines(): void
393
412
-A
394
413
+B
395
414
' . '
396
- ' );
415
+ '
416
+ );
397
417
}
398
418
399
419
public function testUnexpectedEOFBothFromAndToMissingLines (): void
@@ -408,6 +428,7 @@ public function testUnexpectedEOFBothFromAndToMissingLines(): void
408
428
-A
409
429
+B
410
430
' . '
411
- ' );
431
+ '
432
+ );
412
433
}
413
434
}
0 commit comments