mirror of
https://github.com/danog/file.git
synced 2024-11-30 04:19:39 +01:00
19 lines
487 B
PHP
19 lines
487 B
PHP
<?php
|
|
|
|
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"
|
|
);
|
|
}
|
|
}
|
|
}
|