1
0
mirror of https://github.com/danog/amp.git synced 2024-12-02 09:27:46 +01:00
amp/test/Loop/EventDriverTest.php
2017-03-15 08:32:05 +01:00

25 lines
489 B
PHP

<?php
namespace Amp\Test\Loop;
use Amp\Loop\EventDriver;
/**
* @requires extension event
*/
class EventDriverTest extends DriverTest {
public function getFactory(): callable {
return function () {
return new EventDriver;
};
}
public function testHandle() {
$this->assertInstanceOf(\EventBase::class, $this->loop->getHandle());
}
public function testSupported() {
$this->assertTrue(EventDriver::isSupported());
}
}