1
0
mirror of https://github.com/danog/file.git synced 2024-12-12 09:19:48 +01:00
file/test/Driver/EioFileTest.php
2022-02-08 19:49:16 +01:00

21 lines
448 B
PHP

<?php
namespace Amp\File\Test\Driver;
use Amp\File;
use Amp\File\Driver\EioFilesystemDriver;
use Amp\File\Test\AsyncFileTest;
use Revolt\EventLoop;
class EioFileTest extends AsyncFileTest
{
protected function createDriver(): File\FilesystemDriver
{
if (!\extension_loaded("eio")) {
$this->markTestSkipped("eio extension not loaded");
}
return new EioFilesystemDriver(EventLoop::getDriver());
}
}