1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 12:35:02 +01:00
amp/test/EvLoopTest.php

26 lines
518 B
PHP
Raw Normal View History

<?php
namespace Amp\Test\Loop;
use Amp\Loop\EvLoop;
use Interop\Async\Loop\DriverFactory;
use Interop\Async\Loop\Test;
/**
* @requires extension ev
*/
class EvLoopTest extends Test {
public function getFactory() {
2016-06-26 17:35:25 +02:00
if (!EvLoop::supported()) {
$this->markTestSkipped("EvLoop is not available");
}
$factory = $this->getMockBuilder(DriverFactory::class)->getMock();
$factory->method('create')
->willReturn(new EvLoop());
return $factory;
}
}