mirror of
https://github.com/danog/file.git
synced 2024-12-03 09:47:54 +01:00
24 lines
454 B
PHP
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);
|
|
}
|
|
}
|