44
55namespace DocbookCS \Tests \Unit \Path ;
66
7- use DocbookCS \Diff \Diff ;
7+ use DocbookCS \Diff \DiffChangeset ;
88use DocbookCS \Diff \FileChange ;
99use DocbookCS \Path \DiffPathLoader ;
1010use DocbookCS \Path \PathMatcher ;
1414use PHPUnit \Framework \TestCase ;
1515
1616#[
17- CoversClass(Diff ::class),
17+ CoversClass(DiffChangeset ::class),
1818 CoversClass(DiffPathLoader::class),
1919 CoversClass(PathMatcher::class),
2020 //
@@ -44,7 +44,7 @@ public function itLoadsChangedXmlFilesWithoutScanningConfiguredPaths(): void
4444 file_put_contents ($ file , '<chapter/> ' );
4545
4646 $ loader = new DiffPathLoader (
47- new Diff ([new FileChange ('docs/chapter.xml ' , [1 ])]),
47+ new DiffChangeset ([new FileChange ('docs/chapter.xml ' , [1 ])]),
4848 workingDirectory: dirname ($ this ->directory ),
4949 basePath: $ this ->directory ,
5050 projectRoots: [$ this ->directory => 'docs ' ],
@@ -64,7 +64,7 @@ public function itIgnoresMissingNonXmlAndExcludedFiles(): void
6464 file_put_contents ($ excluded , '<chapter/> ' );
6565
6666 $ loader = new DiffPathLoader (
67- new Diff ([
67+ new DiffChangeset ([
6868 new FileChange ('excluded.xml ' , [1 ]),
6969 new FileChange ('notes.txt ' , [1 ]),
7070 new FileChange ('missing.xml ' , [1 ]),
@@ -85,7 +85,7 @@ public function itLoadsAbsolutePaths(): void
8585 file_put_contents ($ file , '<chapter/> ' );
8686
8787 $ loader = new DiffPathLoader (
88- new Diff ([new FileChange ($ file , [1 ])]),
88+ new DiffChangeset ([new FileChange ($ file , [1 ])]),
8989 workingDirectory: $ this ->directory ,
9090 basePath: $ this ->directory ,
9191 projectRoots: [],
@@ -102,7 +102,7 @@ public function itNormalisesParentDirectorySegments(): void
102102 file_put_contents ($ file , '<chapter/> ' );
103103
104104 $ loader = new DiffPathLoader (
105- new Diff ([new FileChange ('nested/../chapter.xml ' , [1 ])]),
105+ new DiffChangeset ([new FileChange ('nested/../chapter.xml ' , [1 ])]),
106106 workingDirectory: $ this ->directory ,
107107 basePath: $ this ->directory ,
108108 projectRoots: [],
0 commit comments