1
0
mirror of https://github.com/danog/file.git synced 2024-12-04 18:28:11 +01:00
file/test/UvDriverTest.php
2019-08-23 13:59:26 -05:00

36 lines
752 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 readlinkPathProvider
*
* @param \Closure $linkResolver
*/
public function testReadlinkError(\Closure $linkResolver): \Generator
{
$this->markTestSkipped('UvDriver Test Skipped: Causes Crash');
yield; // So test still returns a generator.
}
}