mirror of
https://github.com/danog/amp.git
synced 2024-11-27 04:24:42 +01:00
22 lines
404 B
PHP
22 lines
404 B
PHP
<?php
|
|
|
|
namespace Amp\Test\Loop;
|
|
|
|
use Amp\Loop\UvLoop;
|
|
use AsyncInterop\Loop\DriverFactory;
|
|
use AsyncInterop\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;
|
|
}
|
|
}
|