2016-12-29 20:59:59 -06:00
|
|
|
<?php
|
2015-07-18 12:08:50 -04:00
|
|
|
|
2015-08-05 10:55:56 -04:00
|
|
|
namespace Amp\File\Test;
|
2015-07-18 12:08:50 -04:00
|
|
|
|
2017-06-20 19:37:41 +02:00
|
|
|
use Amp\File;
|
|
|
|
use Amp\Loop;
|
|
|
|
use function Amp\asyncCall;
|
|
|
|
|
2018-10-27 10:57:31 -05:00
|
|
|
class EioDriverTest extends DriverTest
|
|
|
|
{
|
|
|
|
protected function execute(callable $cb)
|
|
|
|
{
|
2017-06-20 19:37:41 +02:00
|
|
|
if (!\extension_loaded("eio")) {
|
2015-07-18 12:08:50 -04:00
|
|
|
$this->markTestSkipped(
|
2015-07-30 09:07:01 -04:00
|
|
|
"eio extension not loaded"
|
2015-07-18 12:08:50 -04:00
|
|
|
);
|
|
|
|
}
|
2017-06-20 19:37:41 +02:00
|
|
|
|
|
|
|
Loop::run(function () use ($cb) {
|
|
|
|
File\filesystem(new File\EioDriver);
|
|
|
|
asyncCall($cb);
|
|
|
|
});
|
2015-07-18 12:08:50 -04:00
|
|
|
}
|
|
|
|
}
|