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");
|
|
|
|
}
|
|
|
|
}
|