1
0
mirror of https://github.com/danog/file.git synced 2024-11-30 04:19:39 +01:00
file/test/UvFilesystemTest.php

28 lines
590 B
PHP
Raw Normal View History

2015-07-11 03:59:39 +02:00
<?php
namespace Amp\Fs\Test;
2015-07-17 16:27:38 +02:00
use Amp\Reactor;
use Amp\UvReactor;
use Amp\Fs\UvFilesystem;
2015-07-11 03:59:39 +02:00
class UvFilesystemTest extends FilesystemTest {
2015-07-17 16:27:38 +02:00
protected function getReactor() {
if (extension_loaded('uv')) {
return new UvReactor;
} else {
$this->markTestSkipped(
"php-uv extension not loaded"
);
}
2015-07-11 03:59:39 +02:00
}
2015-07-17 16:27:38 +02:00
protected function getFilesystem(Reactor $reactor) {
2015-07-11 03:59:39 +02:00
return new UvFilesystem($reactor);
}
2015-07-17 16:27:38 +02:00
2015-07-11 03:59:39 +02:00
public function testScandir() {
$this->markTestSkipped("currently crashes php");
}
}