2020-06-30 21:45:09 +02:00
|
|
|
<?php
|
|
|
|
|
2020-06-30 21:49:55 +02:00
|
|
|
namespace Amp\File\Test\Driver;
|
2020-06-30 21:45:09 +02:00
|
|
|
|
|
|
|
use Amp\File;
|
2020-06-30 21:49:55 +02:00
|
|
|
use Amp\File\Driver\EioDriver;
|
|
|
|
use Amp\File\Test\DriverTest;
|
2020-07-06 20:28:39 +02:00
|
|
|
use Amp\Loop;
|
2020-06-30 21:45:09 +02:00
|
|
|
|
|
|
|
class EioDriverTest extends DriverTest
|
|
|
|
{
|
|
|
|
protected function createDriver(): File\Driver
|
|
|
|
{
|
|
|
|
if (!\extension_loaded("eio")) {
|
|
|
|
$this->markTestSkipped("eio extension not loaded");
|
|
|
|
}
|
|
|
|
|
2020-07-06 20:28:39 +02:00
|
|
|
return new EioDriver(Loop::get());
|
2020-06-30 21:45:09 +02:00
|
|
|
}
|
|
|
|
}
|