1
0
mirror of https://github.com/danog/file.git synced 2024-11-30 04:19:39 +01:00
file/test/UvDriverTest.php
2018-10-27 10:45:28 -05:00

35 lines
783 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');
}
}