mirror of
https://github.com/danog/file.git
synced 2024-11-26 20:04:51 +01:00
23 lines
463 B
PHP
23 lines
463 B
PHP
<?php
|
|
|
|
namespace Amp\File\Test;
|
|
|
|
use Amp\File;
|
|
use Amp\Loop;
|
|
use function Amp\asyncCall;
|
|
|
|
class EioDriverTest extends DriverTest {
|
|
protected function execute(callable $cb) {
|
|
if (!\extension_loaded("eio")) {
|
|
$this->markTestSkipped(
|
|
"eio extension not loaded"
|
|
);
|
|
}
|
|
|
|
Loop::run(function () use ($cb) {
|
|
File\filesystem(new File\EioDriver);
|
|
asyncCall($cb);
|
|
});
|
|
}
|
|
}
|