1
0
mirror of https://github.com/danog/file.git synced 2024-12-12 17:27:27 +01:00
file/test/Driver/EioFileTest.php

21 lines
399 B
PHP
Raw Normal View History

2020-06-30 21:45:09 +02:00
<?php
namespace Amp\File\Test\Driver;
use Amp\File;
use Amp\File\Driver\EioDriver;
use Amp\File\Test\AsyncFileTest;
2020-07-06 20:28:39 +02:00
use Amp\Loop;
2020-06-30 21:45:09 +02:00
class EioFileTest extends AsyncFileTest
{
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
}
}