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

Try test skip on Windows due to symlink in build path

This commit is contained in:
Niklas Keller 2022-02-08 22:56:28 +01:00
parent 83582fe723
commit 440d4fb434

View File

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