1
0
mirror of https://github.com/danog/amp.git synced 2024-12-04 18:38:17 +01:00
amp/test/Loop/UvDriverTest.php
2017-04-26 20:20:08 +02:00

26 lines
482 B
PHP

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