1
0
mirror of https://github.com/danog/file.git synced 2024-12-03 09:47:54 +01:00
file/test/Driver/UvFileTest.php
2020-06-30 21:45:09 +02:00

24 lines
454 B
PHP

<?php
namespace Amp\File\Test\Driver;
use Amp\File;
use Amp\File\Driver\UvDriver;
use Amp\File\Test\AsyncFileTest;
use Amp\Loop;
class UvFileTest extends AsyncFileTest
{
protected function createDriver(): File\Driver
{
if (!\extension_loaded("uv")) {
$this->markTestSkipped("php-uv extension not loaded");
}
$loop = new Loop\UvDriver;
Loop::set($loop);
return new UvDriver($loop);
}
}