@@ -255,7 +255,7 @@ public function testGenerateIdFormat(): void
255255 */
256256 public function testProcessWithNonExistentFile (): void
257257 {
258- $ repository = $ this ->createMock (Repository::class);
258+ $ repository = $ this ->createStub (Repository::class);
259259 $ repository ->method ('readFile ' )->willReturn (null );
260260
261261 $ result = $ this ->DocumentProcessor ->process ($ repository , 'non-existent.md ' , 'test-source ' );
@@ -269,7 +269,7 @@ public function testProcessWithNonExistentFile(): void
269269 public function testProcessWithValidFile (): void
270270 {
271271 $ content = $ this ->readTestFile ('simple.md ' );
272- $ repository = $ this ->createMock (Repository::class);
272+ $ repository = $ this ->createStub (Repository::class);
273273 $ repository ->method ('readFile ' )->willReturn ($ content );
274274
275275 $ result = $ this ->DocumentProcessor ->process ($ repository , 'simple.md ' , 'test-source ' );
@@ -284,7 +284,7 @@ public function testProcessWithValidFile(): void
284284 */
285285 public function testProcessBatch (): void
286286 {
287- $ repository = $ this ->createMock (Repository::class);
287+ $ repository = $ this ->createStub (Repository::class);
288288 $ repository ->method ('readFile ' )->willReturnMap ([
289289 ['simple.md ' , $ this ->readTestFile ('simple.md ' )],
290290 ['with-frontmatter.md ' , $ this ->readTestFile ('with-frontmatter.md ' )],
@@ -307,7 +307,7 @@ public function testProcessBatch(): void
307307 */
308308 public function testProcessBatchEmpty (): void
309309 {
310- $ repository = $ this ->createMock (Repository::class);
310+ $ repository = $ this ->createStub (Repository::class);
311311 $ results = $ this ->DocumentProcessor ->processBatch ($ repository , [], 'test-source ' );
312312
313313 $ this ->assertEmpty ($ results );
0 commit comments