Skip to content

Commit 384c89a

Browse files
committed
Fix deletion of files created by doctrine/cache on windows
1 parent 3ab5d32 commit 384c89a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Module/NetteDIModule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function _beforeSuite($settings = [])
5959
public function _before(TestInterface $test)
6060
{
6161
$tempDir = $this->path.'/'.$this->config['tempDir'];
62-
FileSystem::delete($tempDir);
62+
FileSystem::delete(realpath($tempDir));
6363
FileSystem::createDir($tempDir);
6464
$this->container = null;
6565
}
@@ -82,7 +82,7 @@ public function _after(TestInterface $test)
8282
} catch (MissingServiceException $e) {
8383
}
8484

85-
FileSystem::delete($this->container->getParameters()['tempDir']);
85+
FileSystem::delete(realpath($this->container->getParameters()['tempDir']));
8686
}
8787
}
8888

0 commit comments

Comments
 (0)