tao-test/app/vendor/react/child-process/tests/ExtLibevLoopProcessTest.php

19 lines
443 B
PHP

<?php
namespace React\Tests\ChildProcess;
use React\EventLoop\ExtLibevLoop;
use React\EventLoop\LibEvLoop;
class ExtLibevLoopProcessTest extends AbstractProcessTest
{
public function createLoop()
{
if (!class_exists('libev\EventLoop')) {
$this->markTestSkipped('ext-libev is not installed.');
}
return class_exists('React\EventLoop\ExtLibevLoop') ? new ExtLibevLoop() : new LibEvLoop();
}
}