1
0
mirror of https://github.com/danog/file.git synced 2024-11-26 11:54:54 +01:00
file/test/UvDriverTest.php
2018-10-27 10:57:31 -05:00

38 lines
791 B
PHP

<?php
namespace Amp\File\Test;
use Amp\File;
use Amp\Loop;
use function Amp\asyncCall;
class UvDriverTest extends DriverTest
{
protected function execute(callable $cb)
{
if (!\extension_loaded("uv")) {
$this->markTestSkipped(
"php-uv extension not loaded"
);
}
$loop = new Loop\UvDriver;
Loop::set($loop);
Loop::run(function () use ($cb, $loop) {
File\filesystem(new File\UvDriver($loop));
asyncCall($cb);
});
}
/**
* @dataProvider readlinkPathProvider
*
* @param \Closure $linkResolver
*/
public function testReadlinkError(\Closure $linkResolver)
{
$this->markTestSkipped('UvDriver Test Skipped: Causes Crash');
}
}