Codebase list php-react-child-process / debian/0.5.2-2 tests / ExtLibevLoopProcessTest.php
debian/0.5.2-2

Tree @debian/0.5.2-2 (Download .tar.gz)

ExtLibevLoopProcessTest.php @debian/0.5.2-2raw · 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();
    }
}