mirror of
https://github.com/danog/amp.git
synced 2025-01-22 05:11:42 +01:00
23 lines
488 B
PHP
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);
|
|
}
|
|
}
|