From 76a84c1552deca7b46f8b14f34722b119ea374a0 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Tue, 8 Feb 2022 23:43:31 +0100 Subject: [PATCH] Try a different condition for Windows --- test/FilesystemDriverTest.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/FilesystemDriverTest.php b/test/FilesystemDriverTest.php index c41466e..bb56d1c 100644 --- a/test/FilesystemDriverTest.php +++ b/test/FilesystemDriverTest.php @@ -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