mirror of
https://github.com/danog/file.git
synced 2024-12-02 09:17:57 +01:00
24 lines
502 B
PHP
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);
|
|
}
|
|
}
|