1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 13:21:16 +01:00
amp/test/UvLoopTest.php

22 lines
406 B
PHP
Raw Normal View History

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