@@ -63,13 +63,13 @@ public function testWrite(): void
63
63
64
64
$ expected = [
65
65
'errors ' => [
66
- ['description ' => 'foo ' , 'path ' => null , 'line ' => null , 'column ' => null ],
67
- ['description ' => 'bar ' , 'path ' => null , 'line ' => null , 'column ' => null ],
68
- ['description ' => 'baz ' , 'path ' => 'baz-file.php ' , 'line ' => null , 'column ' => null ],
69
- ['description ' => 'tab ' , 'path ' => 'tab-file.php ' , 'line ' => 5 , 'column ' => null ],
70
- ['description ' => 'taz ' , 'path ' => 'taz-file.php ' , 'line ' => 6 , 'column ' => 15 ],
71
- ['description ' => 'tar ' , 'path ' => 'tar-file.php ' , 'line ' => -1 , 'column ' => -1 ],
72
- ['description ' => 'file-in-checked-out-dir ' , 'path ' => 'subpath/file-in-checked-out-dir.php ' , 'line ' => 10 , 'column ' => 20 ],
66
+ ['description ' => 'foo ' , 'path ' => null , 'line ' => null , 'column ' => null , ' modificationType ' => ' removed ' ],
67
+ ['description ' => 'bar ' , 'path ' => null , 'line ' => null , 'column ' => null , ' modificationType ' => ' added ' ],
68
+ ['description ' => 'baz ' , 'path ' => 'baz-file.php ' , 'line ' => null , 'column ' => null , ' modificationType ' => ' changed ' ],
69
+ ['description ' => 'tab ' , 'path ' => 'tab-file.php ' , 'line ' => 5 , 'column ' => null , ' modificationType ' => ' changed ' ],
70
+ ['description ' => 'taz ' , 'path ' => 'taz-file.php ' , 'line ' => 6 , 'column ' => 15 , ' modificationType ' => ' changed ' ],
71
+ ['description ' => 'tar ' , 'path ' => 'tar-file.php ' , 'line ' => -1 , 'column ' => -1 , ' modificationType ' => ' changed ' ],
72
+ ['description ' => 'file-in-checked-out-dir ' , 'path ' => 'subpath/file-in-checked-out-dir.php ' , 'line ' => 10 , 'column ' => 20 , ' modificationType ' => ' changed ' ],
73
73
],
74
74
];
75
75
@@ -86,7 +86,7 @@ public function testWrite(): void
86
86
87
87
self ::assertJsonStringEqualsJsonString (
88
88
<<<'OUTPUT'
89
- {"errors":[{"description":"foo","path":null,"line":null,"column":null},{"description":"bar","path":null,"line":null,"column":null},{"description":"baz","path":"baz-file.php","line":null,"column":null},{"description":"tab","path":"tab-file.php","line":5,"column":null},{"description":"taz","path":"taz-file.php","line":6,"column":15},{"description":"tar","path":"tar-file.php","line":-1,"column":-1},{"description":"file-in-checked-out-dir","path":"subpath\/file-in-checked-out-dir.php","line":10,"column":20}]}
89
+ {"errors":[{"description":"foo","path":null,"line":null,"column":null,"modificationType":"removed" },{"description":"bar","path":null,"line":null,"column":null,"modificationType":"added" },{"description":"baz","path":"baz-file.php","line":null,"column":null,"modificationType":"changed" },{"description":"tab","path":"tab-file.php","line":5,"column":null,"modificationType":"changed" },{"description":"taz","path":"taz-file.php","line":6,"column":15,"modificationType":"changed" },{"description":"tar","path":"tar-file.php","line":-1,"column":-1,"modificationType":"changed" },{"description":"file-in-checked-out-dir","path":"subpath\/file-in-checked-out-dir.php","line":10,"column":20,"modificationType":"changed" }]}
90
90
91
91
OUTPUT
92
92
,
0 commit comments