@@ -83,10 +83,6 @@ public function executeWillGeneratePhpDocumentorConfigAndRunProcess(): void
8383 {
8484 $ this ->filesystem ->exists (Argument::any ())->willReturn (true );
8585 // O template agora é resolvido via getConfigFile, então precisamos garantir que o mock aceite o caminho relativo
86- $ this ->filesystem ->readFile (Argument::that (
87- // Aceita tanto caminho absoluto quanto relativo, pois getConfigFile pode resolver ambos
88- fn ($ file ): bool => str_contains ((string ) $ file , 'resources/phpdocumentor.xml ' )
89- ))->willReturn ('template_content ' );
9086 $ this ->filesystem ->dumpFile (Argument::cetera ())->shouldBeCalled ();
9187
9288 $ this ->willRunProcessWithCallback (function (Process $ process ): bool {
@@ -106,7 +102,6 @@ public function executeWillGeneratePhpDocumentorConfigAndRunProcess(): void
106102 public function executeWillReturnFailureIfProcessFails (): void
107103 {
108104 $ this ->filesystem ->exists (Argument::any ())->willReturn (true );
109- $ this ->filesystem ->readFile (Argument::cetera ())->willReturn ('template_content ' );
110105 $ this ->filesystem ->dumpFile (Argument::cetera ())->shouldBeCalled ();
111106
112107 $ this ->willRunProcessWithCallback (static fn (): bool => true , false );
@@ -123,7 +118,6 @@ public function executeWillCreateConfigDirectoryIfItDoesNotExist(): void
123118 $ this ->filesystem ->exists (Argument::any ())->willReturn (true );
124119 $ this ->filesystem ->exists (getcwd () . '/tmp/cache/phpdoc ' )->willReturn (false );
125120
126- $ this ->filesystem ->readFile (Argument::cetera ())->willReturn ('template_content ' );
127121 $ this ->filesystem ->mkdir (Argument::any ())->shouldBeCalled ();
128122 $ this ->filesystem ->dumpFile (Argument::cetera ())->shouldBeCalled ();
129123
0 commit comments