mirror of
https://github.com/danog/file.git
synced 2024-12-02 09:17:57 +01:00
28bdce091e
Handle interface still provided for backward compatibility.
25 lines
442 B
PHP
25 lines
442 B
PHP
<?php
|
|
|
|
namespace Amp\File\Test;
|
|
|
|
use Amp\File;
|
|
use Amp\Loop;
|
|
|
|
class UvHandleTest extends AsyncFileTest
|
|
{
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
|
|
if (!\extension_loaded("uv")) {
|
|
$this->markTestSkipped(
|
|
"php-uv extension not loaded"
|
|
);
|
|
}
|
|
|
|
$loop = new Loop\UvDriver;
|
|
Loop::set($loop);
|
|
File\filesystem(new File\UvDriver($loop));
|
|
}
|
|
}
|