1
0
mirror of https://github.com/danog/file.git synced 2024-11-30 04:19:39 +01:00
file/test/EioDriverTest.php
2016-08-24 00:01:41 -05:00

19 lines
514 B
PHP

<?php declare(strict_types = 1);
namespace Amp\File\Test;
class EioDriverTest extends DriverTest {
protected function lRun(callable $cb) {
if (\extension_loaded("eio")) {
\Interop\Async\Loop::execute(function() use ($cb) {
\Amp\File\filesystem(new \Amp\File\EioDriver);
\Amp\rethrow(new \Amp\Coroutine($cb()));
});
} else {
$this->markTestSkipped(
"eio extension not loaded"
);
}
}
}