mirror of
https://github.com/danog/file.git
synced 2025-01-22 13:21:13 +01:00
Try test skip on Windows due to symlink in build path
This commit is contained in:
parent
83582fe723
commit
440d4fb434
@ -112,14 +112,12 @@ abstract class FilesystemDriverTest extends FilesystemTest
|
||||
{
|
||||
$link = $linkResolver();
|
||||
|
||||
\clearstatcache(true);
|
||||
|
||||
if (IS_WINDOWS && \file_exists($link)) {
|
||||
self::assertSame($link, $this->driver->resolveSymlink($link));
|
||||
} else {
|
||||
$this->expectException(FilesystemException::class);
|
||||
$this->driver->resolveSymlink($link);
|
||||
if (\file_exists($link) && \realpath(__FILE__) !== __FILE__) {
|
||||
$this->markTestSkipped('Build directory itself contains a symlink');
|
||||
}
|
||||
|
||||
$this->expectException(FilesystemException::class);
|
||||
$this->driver->resolveSymlink($link);
|
||||
}
|
||||
|
||||
public function testLinkStatus(): void
|
||||
|
Loading…
x
Reference in New Issue
Block a user