2016-12-29 20:59:59 -06:00
|
|
|
<?php
|
2015-08-12 19:02:41 -04:00
|
|
|
|
|
|
|
namespace Amp\File\Test;
|
|
|
|
|
2017-06-20 19:37:41 +02:00
|
|
|
use Amp\File;
|
|
|
|
use Amp\Loop;
|
|
|
|
use function Amp\asyncCall;
|
|
|
|
|
2017-06-20 00:06:12 -05:00
|
|
|
class EioHandleTest extends AsyncHandleTest {
|
2017-06-16 18:12:42 -05:00
|
|
|
protected function execute(callable $cb) {
|
2017-06-20 19:37:41 +02:00
|
|
|
if (!\extension_loaded("eio")) {
|
2015-08-12 19:02:41 -04:00
|
|
|
$this->markTestSkipped(
|
|
|
|
"eio extension not loaded"
|
|
|
|
);
|
|
|
|
}
|
2017-06-20 19:37:41 +02:00
|
|
|
|
|
|
|
Loop::run(function () use ($cb) {
|
|
|
|
File\filesystem(new File\EioDriver);
|
|
|
|
asyncCall($cb);
|
|
|
|
});
|
2015-08-12 19:02:41 -04:00
|
|
|
}
|
|
|
|
}
|