From 57caade0d13ac4b19556e19412aaaffdf69cf1ec Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Sun, 25 Feb 2024 14:25:25 +0100 Subject: [PATCH] Skip symlink test on Windows Fixes vimeo/psalm#6449 Symlinks on Windows are rare (and quite unreliable) --- tests/Config/ConfigTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Config/ConfigTest.php b/tests/Config/ConfigTest.php index e8fe9a94c..d0aa56b1c 100644 --- a/tests/Config/ConfigTest.php +++ b/tests/Config/ConfigTest.php @@ -158,6 +158,9 @@ class ConfigTest extends TestCase $this->assertFalse($config->isInProjectDirs(realpath('examples/TemplateScanner.php'))); } + /** + * @requires OS ^(?!WIN) + */ public function testIgnoreSymlinkedProjectDirectory(): void { @unlink(dirname(__DIR__, 1) . '/fixtures/symlinktest/ignored/b');