mirror of
https://github.com/danog/file.git
synced 2024-11-26 20:04:51 +01:00
9e7c1c1488
Signficantly refactored EioHandle and UvHandle.
19 lines
490 B
PHP
19 lines
490 B
PHP
<?php
|
|
|
|
namespace Amp\File\Test;
|
|
|
|
class EioHandleTest extends AsyncHandleTest {
|
|
protected function execute(callable $cb) {
|
|
if (\extension_loaded("eio")) {
|
|
\Amp\Loop::run(function () use ($cb) {
|
|
\Amp\File\filesystem(new \Amp\File\EioDriver);
|
|
\Amp\Promise\rethrow(new \Amp\Coroutine($cb()));
|
|
});
|
|
} else {
|
|
$this->markTestSkipped(
|
|
"eio extension not loaded"
|
|
);
|
|
}
|
|
}
|
|
}
|