2016-06-08 16:12:42 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Amp\Test\Loop;
|
|
|
|
|
2017-03-12 11:21:44 +01:00
|
|
|
use Amp\Loop\EvDriver;
|
2016-06-08 16:12:42 +02:00
|
|
|
|
2016-12-29 21:47:06 +01:00
|
|
|
/**
|
|
|
|
* @requires extension ev
|
|
|
|
*/
|
2018-06-18 20:00:01 +02:00
|
|
|
class EvDriverTest extends DriverTest
|
|
|
|
{
|
|
|
|
public function getFactory(): callable
|
|
|
|
{
|
2017-03-10 21:31:57 +01:00
|
|
|
return function () {
|
2017-03-12 11:21:44 +01:00
|
|
|
return new EvDriver;
|
2017-03-10 21:31:57 +01:00
|
|
|
};
|
2016-06-08 16:12:42 +02:00
|
|
|
}
|
2017-03-13 13:56:46 +01:00
|
|
|
|
2018-06-18 20:00:01 +02:00
|
|
|
public function testHandle()
|
|
|
|
{
|
2017-03-13 13:56:46 +01:00
|
|
|
$this->assertInstanceOf(\EvLoop::class, $this->loop->getHandle());
|
|
|
|
}
|
2017-03-15 08:32:05 +01:00
|
|
|
|
2018-06-18 20:00:01 +02:00
|
|
|
public function testSupported()
|
|
|
|
{
|
2017-03-15 08:32:05 +01:00
|
|
|
$this->assertTrue(EvDriver::isSupported());
|
|
|
|
}
|
2016-06-08 16:12:42 +02:00
|
|
|
}
|