1
0
mirror of https://github.com/danog/amp.git synced 2024-12-11 08:59:46 +01:00
amp/test/Loop/EvDriverTest.php

29 lines
483 B
PHP
Raw Normal View History

<?php
namespace Amp\Test\Loop;
use Amp\Loop\EvDriver;
/**
* @requires extension ev
*/
2018-06-18 20:00:01 +02:00
class EvDriverTest extends DriverTest
{
public function getFactory(): callable
{
return function () {
return new EvDriver;
};
}
2018-06-18 20:00:01 +02:00
public function testHandle()
{
$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());
}
}