mirror of
https://github.com/danog/amp.git
synced 2024-12-02 17:37:50 +01:00
19 lines
374 B
PHP
19 lines
374 B
PHP
|
<?php
|
||
|
|
||
|
namespace Amp\Test\Loop;
|
||
|
|
||
|
use Amp\Loop\UvLoop;
|
||
|
use Interop\Async\Loop\DriverFactory;
|
||
|
use Interop\Async\Loop\Test;
|
||
|
|
||
|
class UvLoopTest extends Test {
|
||
|
public function getFactory() {
|
||
|
$factory = $this->getMockBuilder(DriverFactory::class)->getMock();
|
||
|
|
||
|
$factory->method('create')
|
||
|
->willReturn(new UvLoop());
|
||
|
|
||
|
return $factory;
|
||
|
}
|
||
|
}
|