mirror of
https://github.com/danog/process.git
synced 2025-01-23 06:11:34 +01:00
22 lines
509 B
PHP
22 lines
509 B
PHP
<?php
|
|
|
|
namespace Amp\Process\Test;
|
|
|
|
use Amp\LibeventReactor;
|
|
|
|
class LibeventReactorProcessTest extends AbstractProcessTest {
|
|
|
|
protected function setUp() {
|
|
if (extension_loaded("libevent")) {
|
|
\Amp\reactor($assign = new LibeventReactor);
|
|
} else {
|
|
$this->markTestSkipped(
|
|
"libevent extension not loaded"
|
|
);
|
|
}
|
|
}
|
|
|
|
public function testReactor() {
|
|
$this->assertInstanceOf('\Amp\LibeventReactor', \Amp\reactor());
|
|
}
|
|
} |