1
0
mirror of https://github.com/danog/amp.git synced 2024-12-11 17:09:40 +01:00
amp/test/Loop/UvDriverTest.php
2017-03-15 08:32:05 +01:00

25 lines
463 B
PHP

<?php
namespace Amp\Test\Loop;
use Amp\Loop\UvDriver;
/**
* @requires extension uv
*/
class UvDriverTest extends DriverTest {
public function getFactory(): callable {
return function () {
return new UvDriver;
};
}
public function testHandle() {
$this->assertTrue(\is_resource($this->loop->getHandle()));
}
public function testSupported() {
$this->assertTrue(UvDriver::isSupported());
}
}