1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 04:24:42 +01:00
amp/test/LibeventReactorTest.php
2015-07-29 16:59:53 -04:00

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);
}
}