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

Try a different condition for Windows

This commit is contained in:
Niklas Keller 2022-02-08 23:43:31 +01:00
parent 3143155546
commit 76a84c1552

View File

@ -112,12 +112,15 @@ abstract class FilesystemDriverTest extends FilesystemTest
{
$link = $linkResolver();
if (IS_WINDOWS && \file_exists($link) && \readlink(__FILE__) !== __FILE__) {
$this->expectException(FilesystemException::class);
$result = $this->driver->resolveSymlink($link);
if (IS_WINDOWS) {
self::assertNotSame($result, $link);
$this->markTestSkipped('Build directory itself contains a symlink');
}
$this->expectException(FilesystemException::class);
$this->driver->resolveSymlink($link);
}
public function testLinkStatus(): void