Skip to content

Commit

Permalink
Skip symlink test on Windows
Browse files Browse the repository at this point in the history
Fixes #6449

Symlinks on Windows are rare (and quite unreliable)
  • Loading branch information
weirdan committed Feb 25, 2024
1 parent 6c10ad2 commit 37160e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Config/ConfigTest.php
Expand Up @@ -158,6 +158,9 @@ public function testIgnoreMissingProjectDirectory(): void
$this->assertFalse($config->isInProjectDirs(realpath('examples/TemplateScanner.php')));
}

/**
* @requires OS ^(?!WIN)
*/
public function testIgnoreSymlinkedProjectDirectory(): void
{
@unlink(dirname(__DIR__, 1) . '/fixtures/symlinktest/ignored/b');
Expand Down Expand Up @@ -1107,7 +1110,7 @@ public function testAllPossibleIssues(): void
* @param string $issue_name
* @return string
*/
static fn($issue_name): string => '<' . $issue_name . ' errorLevel="suppress" />' . "\n",
static fn ($issue_name): string => '<' . $issue_name . ' errorLevel="suppress" />' . "\n",
IssueHandler::getAllIssueTypes(),
),
);
Expand Down

0 comments on commit 37160e3

Please sign in to comment.