mirror of
https://github.com/danog/amp.git
synced 2024-12-03 09:57:51 +01:00
21 lines
389 B
PHP
21 lines
389 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());
|
|
}
|
|
}
|