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:
parent
83582fe723
commit
440d4fb434
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user