@@ -155,7 +155,7 @@ public function executeWillWriteGeneratedCodeOwnersWhenFileIsMissing(): void
155155
156156 $ this ->filesystem ->getAbsolutePath ('.github/CODEOWNERS ' )
157157 ->willReturn ($ targetPath );
158- $ this ->filesystem ->dirname ($ targetPath )
158+ $ this ->filesystem ->getDirectory ($ targetPath )
159159 ->willReturn ($ targetDirectory );
160160 $ this ->filesystem ->exists ($ targetPath )
161161 ->willReturn (false , false );
@@ -193,7 +193,7 @@ public function executeWillSkipExistingCodeOwnersByDefault(): void
193193
194194 $ this ->filesystem ->getAbsolutePath ('.github/CODEOWNERS ' )
195195 ->willReturn ($ targetPath );
196- $ this ->filesystem ->dirname ($ targetPath )
196+ $ this ->filesystem ->getDirectory ($ targetPath )
197197 ->willReturn ('/project/.github ' );
198198 $ this ->filesystem ->exists ($ targetPath )
199199 ->willReturn (true );
@@ -227,7 +227,7 @@ public function executeWillFailCheckModeWhenDriftIsDetected(): void
227227 ->willReturn (true );
228228 $ this ->filesystem ->getAbsolutePath ('.github/CODEOWNERS ' )
229229 ->willReturn ($ targetPath );
230- $ this ->filesystem ->dirname ($ targetPath )
230+ $ this ->filesystem ->getDirectory ($ targetPath )
231231 ->willReturn ('/project/.github ' );
232232 $ this ->filesystem ->exists ($ targetPath )
233233 ->willReturn (true );
@@ -269,7 +269,7 @@ public function executeWillPromptForOwnersWhenInteractiveInferenceFails(): void
269269 ->willReturn (true );
270270 $ this ->filesystem ->getAbsolutePath ('.github/CODEOWNERS ' )
271271 ->willReturn ($ targetPath );
272- $ this ->filesystem ->dirname ($ targetPath )
272+ $ this ->filesystem ->getDirectory ($ targetPath )
273273 ->willReturn ($ targetDirectory );
274274 $ this ->filesystem ->exists ($ targetPath )
275275 ->willReturn (false , false );
@@ -318,7 +318,7 @@ public function executeWillReturnSuccessOnDryRunWhenDriftIsDetected(): void
318318 ->willReturn (true );
319319 $ this ->filesystem ->getAbsolutePath ('.github/CODEOWNERS ' )
320320 ->willReturn ($ targetPath );
321- $ this ->filesystem ->dirname ($ targetPath )
321+ $ this ->filesystem ->getDirectory ($ targetPath )
322322 ->willReturn ('/project/.github ' );
323323 $ this ->filesystem ->exists ($ targetPath )
324324 ->willReturn (true );
@@ -359,7 +359,7 @@ public function executeWillSkipReplacingExistingCodeOwnersWhenConfirmationIsDecl
359359 ->willReturn (true );
360360 $ this ->filesystem ->getAbsolutePath ('.github/CODEOWNERS ' )
361361 ->willReturn ($ targetPath );
362- $ this ->filesystem ->dirname ($ targetPath )
362+ $ this ->filesystem ->getDirectory ($ targetPath )
363363 ->willReturn ('/project/.github ' );
364364 $ this ->filesystem ->exists ($ targetPath )
365365 ->willReturn (true );
0 commit comments