Codebase list php-react-child-process / a02d7a95-53be-4032-a4df-48d88e9c9990/main tests / ExtLibevLoopProcessTest.php
a02d7a95-53be-4032-a4df-48d88e9c9990/main

Tree @a02d7a95-53be-4032-a4df-48d88e9c9990/main (Download .tar.gz)

ExtLibevLoopProcessTest.php @a02d7a95-53be-4032-a4df-48d88e9c9990/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();
    }
}