mirror of
https://github.com/danog/amp.git
synced 2024-11-27 04:24:42 +01:00
23 lines
514 B
PHP
23 lines
514 B
PHP
<?php
|
|
|
|
namespace Amp\Test;
|
|
|
|
use Amp\LibeventReactor;
|
|
|
|
class LibeventReactorTest extends ReactorTest {
|
|
protected function setUp() {
|
|
if (extension_loaded("libevent")) {
|
|
\Amp\reactor($assign = new LibeventReactor);
|
|
} else {
|
|
$this->markTestSkipped(
|
|
"libevent extension not loaded"
|
|
);
|
|
}
|
|
}
|
|
|
|
public function testGetLoop() {
|
|
$result = \Amp\reactor()->getLoop();
|
|
$this->assertInternalType("resource", $result);
|
|
}
|
|
}
|