1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 21:31:18 +01:00
amp/test/UvLoopTest.php
2017-01-05 17:21:30 -06:00

22 lines
406 B
PHP

<?php
namespace Amp\Test\Loop;
use Amp\Loop\UvLoop;
use Interop\Async\Loop\DriverFactory;
use Interop\Async\Loop\Test;
/**
* @requires extension uv
*/
class UvLoopTest extends Test {
public function getFactory() {
$factory = $this->getMockBuilder(DriverFactory::class)->getMock();
$factory->method('create')
->willReturn(new UvLoop);
return $factory;
}
}