1
0
mirror of https://github.com/danog/amp.git synced 2024-12-06 05:48:59 +01:00
amp/test/Loop/EventDriverTest.php

29 lines
501 B
PHP
Raw Normal View History

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