1
0
mirror of https://github.com/danog/process.git synced 2025-01-23 06:11:34 +01:00
process/tests/UvReactorProcessTest.php

22 lines
473 B
PHP

<?php
namespace Amp\Process\Test;
use Amp\UvReactor;
class UvReactorProcessTest extends AbstractProcessTest {
public function setUp(){
if (extension_loaded("uv")) {
\Amp\reactor($assign = new UvReactor);
} else {
$this->markTestSkipped(
"php-uv extension not loaded"
);
}
}
public function testReactor() {
$this->assertInstanceOf('\Amp\UvReactor', \Amp\reactor());
}
}