1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 05:11:42 +01:00
amp/test/UvReactorTest.php
2015-07-29 16:59:53 -04:00

23 lines
488 B
PHP

<?php
namespace Amp\Test;
use Amp\UvReactor;
class UvReactorTest extends ReactorTest {
protected function setUp() {
if (extension_loaded("uv")) {
\Amp\reactor($assign = new UvReactor);
} else {
$this->markTestSkipped(
"php-uv extension not loaded"
);
}
}
public function testGetLoop() {
$result = \Amp\reactor()->getLoop();
$this->assertInternalType("resource", $result);
}
}