1
0
mirror of https://github.com/danog/file.git synced 2025-01-22 13:21:13 +01:00

Try to fix some more tests on Windows

This commit is contained in:
Niklas Keller 2022-02-08 22:43:53 +01:00
parent a2328098e9
commit 8ced3f0d17

View File

@ -112,7 +112,9 @@ abstract class FilesystemDriverTest extends FilesystemTest
{
$link = $linkResolver();
if (IS_WINDOWS && File\isFile($link)) {
\clearstatcache(true);
if (IS_WINDOWS && \is_file($link)) {
self::assertSame($link, $this->driver->resolveSymlink($link));
} else {
$this->expectException(FilesystemException::class);
@ -356,7 +358,12 @@ abstract class FilesystemDriverTest extends FilesystemTest
$this->driver->createDirectoryRecursively($dir, 0764);
$stat = $this->driver->getStatus($dir);
$this->assertSame('0744', $this->getPermissionsFromStatus($stat));
if (IS_WINDOWS) {
$this->assertSame('0777', $this->getPermissionsFromStatus($stat));
} else {
$this->assertSame('0744', $this->getPermissionsFromStatus($stat));
}
}
public function testCreateDirectoryFailsOnNonexistentPath(): void