2022-12-17 22:52:21 +01:00
|
|
|
<?php declare(strict_types=1);
|
2020-06-30 21:45:09 +02:00
|
|
|
|
|
|
|
namespace Amp\File\Test\Driver;
|
|
|
|
|
|
|
|
use Amp\File;
|
2022-02-08 19:49:16 +01:00
|
|
|
use Amp\File\Driver\EioFilesystemDriver;
|
2020-06-30 21:45:09 +02:00
|
|
|
use Amp\File\Test\AsyncFileTest;
|
2021-10-16 04:53:50 +02:00
|
|
|
use Revolt\EventLoop;
|
2020-06-30 21:45:09 +02:00
|
|
|
|
|
|
|
class EioFileTest extends AsyncFileTest
|
|
|
|
{
|
2022-02-08 19:49:16 +01:00
|
|
|
protected function createDriver(): File\FilesystemDriver
|
2020-06-30 21:45:09 +02:00
|
|
|
{
|
|
|
|
if (!\extension_loaded("eio")) {
|
|
|
|
$this->markTestSkipped("eio extension not loaded");
|
|
|
|
}
|
|
|
|
|
2022-02-08 19:49:16 +01:00
|
|
|
return new EioFilesystemDriver(EventLoop::getDriver());
|
2020-06-30 21:45:09 +02:00
|
|
|
}
|
|
|
|
}
|