1
0
mirror of https://github.com/danog/file.git synced 2024-12-03 09:47:54 +01:00
file/test/UvDriverTest.php
2020-06-24 22:00:24 +02:00

39 lines
851 B
PHP

<?php
namespace Amp\File\Test;
use Amp\File;
use Amp\Loop;
class UvDriverTest extends DriverTest
{
protected function setUp(): void
{
parent::setUp();
if (!\extension_loaded("uv")) {
$this->markTestSkipped(
"php-uv extension not loaded"
);
}
$loop = new Loop\UvDriver;
Loop::set($loop);
File\filesystem(new File\UvDriver($loop));
}
/**
* @dataProvider symlinkPathProvider
*
* @param \Closure $linkResolver
*/
public function testResolveSymlinkError(\Closure $linkResolver): \Generator
{
if (\version_compare(\phpversion('uv'), '0.3.0', '<')) {
$this->markTestSkipped('UvDriver Test Skipped: Causes Crash');
}
yield from parent::testResolveSymlinkError($linkResolver);
}
}