mirror of
https://github.com/danog/amp.git
synced 2024-12-02 09:27:46 +01:00
29 lines
483 B
PHP
29 lines
483 B
PHP
<?php
|
|
|
|
namespace Amp\Test\Loop;
|
|
|
|
use Amp\Loop\EvDriver;
|
|
|
|
/**
|
|
* @requires extension ev
|
|
*/
|
|
class EvDriverTest extends DriverTest
|
|
{
|
|
public function getFactory(): callable
|
|
{
|
|
return function () {
|
|
return new EvDriver;
|
|
};
|
|
}
|
|
|
|
public function testHandle()
|
|
{
|
|
$this->assertInstanceOf(\EvLoop::class, $this->loop->getHandle());
|
|
}
|
|
|
|
public function testSupported()
|
|
{
|
|
$this->assertTrue(EvDriver::isSupported());
|
|
}
|
|
}
|