mirror of
https://github.com/danog/file.git
synced 2025-01-22 13:21:13 +01:00
Try a different condition for Windows
This commit is contained in:
parent
3143155546
commit
76a84c1552
@ -112,12 +112,15 @@ abstract class FilesystemDriverTest extends FilesystemTest
|
||||
{
|
||||
$link = $linkResolver();
|
||||
|
||||
if (IS_WINDOWS && \file_exists($link) && \readlink(__FILE__) !== __FILE__) {
|
||||
$this->expectException(FilesystemException::class);
|
||||
|
||||
$result = $this->driver->resolveSymlink($link);
|
||||
|
||||
if (IS_WINDOWS) {
|
||||
self::assertNotSame($result, $link);
|
||||
|
||||
$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