2017-01-05 19:57:35 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Amp\Test\Loop;
|
|
|
|
|
2017-03-12 11:21:44 +01:00
|
|
|
use Amp\Loop\EventDriver;
|
2017-01-05 19:57:35 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @requires extension event
|
|
|
|
*/
|
2017-03-12 11:21:44 +01:00
|
|
|
class EventDriverTest extends DriverTest {
|
2017-03-10 22:20:28 +01:00
|
|
|
public function getFactory(): callable {
|
2017-03-10 21:31:57 +01:00
|
|
|
return function () {
|
2017-03-12 11:21:44 +01:00
|
|
|
return new EventDriver;
|
2017-03-10 21:31:57 +01:00
|
|
|
};
|
2017-01-05 19:57:35 +01:00
|
|
|
}
|
2017-03-13 13:56:46 +01:00
|
|
|
|
|
|
|
public function testHandle() {
|
|
|
|
$this->assertInstanceOf(\EventBase::class, $this->loop->getHandle());
|
|
|
|
}
|
2017-03-15 08:32:05 +01:00
|
|
|
|
|
|
|
public function testSupported() {
|
|
|
|
$this->assertTrue(EventDriver::isSupported());
|
|
|
|
}
|
2017-01-05 19:57:35 +01:00
|
|
|
}
|