1
0
mirror of https://github.com/danog/file.git synced 2024-11-26 11:54:54 +01:00
file/test/EioHandleTest.php
2018-10-27 10:57:31 -05:00

25 lines
472 B
PHP

<?php
namespace Amp\File\Test;
use Amp\File;
use Amp\Loop;
use function Amp\asyncCall;
class EioHandleTest extends AsyncHandleTest
{
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);
});
}
}