1
0
mirror of https://github.com/danog/file.git synced 2024-12-03 09:47:54 +01:00
file/test/EioFilesystemTest.php

24 lines
502 B
PHP
Raw Normal View History

2015-07-18 18:08:50 +02:00
<?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);
}
}