1
0
mirror of https://github.com/danog/amp.git synced 2024-12-11 17:09:40 +01:00
amp/test/UvLoopTest.php

22 lines
404 B
PHP
Raw Normal View History

2016-06-09 19:57:46 +02:00
<?php
namespace Amp\Test\Loop;
use Amp\Loop\UvLoop;
2017-01-07 13:45:03 +01:00
use AsyncInterop\Loop\DriverFactory;
use AsyncInterop\Loop\Test;
2016-06-09 19:57:46 +02:00
/**
* @requires extension uv
*/
2016-06-09 19:57:46 +02:00
class UvLoopTest extends Test {
public function getFactory() {
$factory = $this->getMockBuilder(DriverFactory::class)->getMock();
$factory->method('create')
2017-01-06 00:21:30 +01:00
->willReturn(new UvLoop);
2016-06-09 19:57:46 +02:00
return $factory;
}
}