mirror of
https://github.com/danog/amp.git
synced 2024-12-04 18:38:17 +01:00
26 lines
482 B
PHP
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());
|
|
}
|
|
}
|