Codebase list php-react-child-process / lintian-fixes/main tests / ExtLibevLoopProcessTest.php
lintian-fixes/main

Tree @lintian-fixes/main (Download .tar.gz)

ExtLibevLoopProcessTest.php @lintian-fixes/mainraw · history · blame

<?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();
    }
}