1
0
mirror of https://github.com/danog/file.git synced 2024-11-30 04:19:39 +01:00
file/test/UvDescriptorTest.php
2015-07-17 10:55:38 -04:00

23 lines
489 B
PHP

<?php
namespace Amp\Fs\Test;
use Amp\Reactor;
use Amp\UvReactor;
use Amp\Fs\UvFilesystem;
class UvDescriptorTest extends DescriptorTest {
protected function getReactor() {
if (extension_loaded('uv')) {
return new UvReactor;
} else {
$this->markTestSkipped(
"php-uv extension not loaded"
);
}
}
protected function getFilesystem(Reactor $reactor) {
return new UvFilesystem($reactor);
}
}