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:
parent
a2328098e9
commit
8ced3f0d17
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user