44
55use App \Service \FileProcessor ;
66use Doctrine \ORM \EntityManagerInterface ;
7+ use Prophecy \Argument ;
78use Prophecy \PhpUnit \ProphecyTrait ;
89use Psr \Log \LoggerInterface ;
910use Symfony \Bundle \FrameworkBundle \Test \KernelTestCase ;
@@ -61,7 +62,7 @@ public function testGetFilesWithExistingFile(): void
6162 {
6263 $ em = $ this ->prophesize (EntityManagerInterface::class);
6364 $ logger = $ this ->prophesize (LoggerInterface::class);
64- $ logger ->info (\ Prophecy \ Argument::any ())->willReturn (null );
65+ $ logger ->info (Argument::any ())->willReturn (null );
6566
6667 // Pre-create the file so getFiles skips the download
6768 $ filePath = $ this ->tmpDir . '/var/testfile.txt ' ;
@@ -77,7 +78,7 @@ public function testGetFileReturnsFirstFile(): void
7778 {
7879 $ em = $ this ->prophesize (EntityManagerInterface::class);
7980 $ logger = $ this ->prophesize (LoggerInterface::class);
80- $ logger ->info (\ Prophecy \ Argument::any ())->willReturn (null );
81+ $ logger ->info (Argument::any ())->willReturn (null );
8182
8283 $ filePath = $ this ->tmpDir . '/var/singlefile.txt ' ;
8384 file_put_contents ($ filePath , "content " );
@@ -93,7 +94,7 @@ public function testGetFilesWithExistingZip(): void
9394 $ em = $ this ->prophesize (EntityManagerInterface::class);
9495 $ logger = $ this ->prophesize (LoggerInterface::class);
9596 // Allow any info messages (for file-exists, zip extract etc.)
96- $ logger ->info (\ Prophecy \ Argument::any ())->willReturn (null );
97+ $ logger ->info (Argument::any ())->willReturn (null );
9798
9899 // Create a real zip file
99100 $ zipPath = $ this ->tmpDir . '/var/testarchive.zip ' ;
0 commit comments