2015-07-11 03:59:39 +02:00
|
|
|
<?php
|
|
|
|
|
2015-08-05 16:55:56 +02:00
|
|
|
namespace Amp\File\Test;
|
2015-07-11 03:59:39 +02:00
|
|
|
|
2015-07-30 16:10:53 +02:00
|
|
|
class UvDriverTest extends DriverTest {
|
2015-07-30 15:07:01 +02:00
|
|
|
protected function setUp() {
|
|
|
|
if (\extension_loaded("uv")) {
|
|
|
|
$reactor = new \Amp\UvReactor;
|
|
|
|
\Amp\reactor($reactor);
|
2015-08-05 16:55:56 +02:00
|
|
|
$driver = new \Amp\File\UvDriver($reactor);
|
|
|
|
\Amp\File\filesystem($driver);
|
2015-08-13 01:02:41 +02:00
|
|
|
parent::setUp();
|
2015-07-17 16:27:38 +02:00
|
|
|
} else {
|
|
|
|
$this->markTestSkipped(
|
|
|
|
"php-uv extension not loaded"
|
|
|
|
);
|
|
|
|
}
|
2015-07-11 03:59:39 +02:00
|
|
|
}
|
2015-08-08 16:09:07 +02:00
|
|
|
}
|