createMock(ITempManager::class); $this->path = uniqid(sys_get_temp_dir() . '/php_test_seq_', true); mkdir($this->path); $tempManager->method('getTemporaryFolder')->willReturn($this->path); $this->sequence = new FileSequence($tempManager); } public function tearDown():void { foreach (glob($this->path . '/*') as $file) { unlink($file); } rmdir($this->path); } }