1
0
mirror of https://github.com/danog/file.git synced 2024-12-02 09:17:57 +01:00
file/test/EioFilesystemTest.php
2015-07-18 12:08:50 -04:00

24 lines
502 B
PHP

<?php
namespace Amp\Fs\Test;
use Amp\Reactor;
use Amp\NativeReactor;
use Amp\Fs\EioFilesystem;
class EioFilesystemTest extends FilesystemTest {
protected function getReactor() {
if (extension_loaded("eio")) {
return new NativeReactor;
} else {
$this->markTestSkipped(
"php-uv extension not loaded"
);
}
}
protected function getFilesystem(Reactor $reactor) {
return new EioFilesystem($reactor);
}
}