1
0
mirror of https://github.com/danog/file.git synced 2024-11-26 20:04:51 +01:00
file/test/UvDriverTest.php

20 lines
577 B
PHP
Raw Normal View History

2016-08-24 07:01:41 +02:00
<?php declare(strict_types = 1);
2015-07-11 03:59:39 +02:00
2015-08-05 16:55:56 +02:00
namespace Amp\File\Test;
2015-07-11 03:59:39 +02:00
2015-07-30 16:10:53 +02:00
class UvDriverTest extends DriverTest {
2016-07-21 01:33:03 +02:00
protected function lRun(callable $cb) {
if (\extension_loaded("uv")) {
2016-07-21 01:33:03 +02:00
$loop = new \Amp\Loop\UvLoop;
\Interop\Async\Loop::execute(function() use ($cb, $loop) {
\Amp\File\filesystem(new \Amp\File\UvDriver($loop));
\Amp\rethrow(new \Amp\Coroutine($cb()));
}, $loop);
2015-07-17 16:27:38 +02:00
} else {
$this->markTestSkipped(
"php-uv extension not loaded"
);
}
2015-07-11 03:59:39 +02:00
}
2015-08-08 16:09:07 +02:00
}