@@ -63,13 +63,13 @@ public function testWrite(): void
6363
6464 $ expected = [
6565 '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 ' ],
7373 ],
7474 ];
7575
@@ -86,7 +86,7 @@ public function testWrite(): void
8686
8787 self ::assertJsonStringEqualsJsonString (
8888 <<<'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" }]}
9090
9191OUTPUT
9292 ,
0 commit comments