2016-06-08 16:12:42 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Amp\Test\Loop;
|
|
|
|
|
|
|
|
use Amp\Loop\EvLoop;
|
2017-01-07 13:45:03 +01:00
|
|
|
use AsyncInterop\Loop\DriverFactory;
|
|
|
|
use AsyncInterop\Loop\Test;
|
2016-06-08 16:12:42 +02:00
|
|
|
|
2016-12-29 21:47:06 +01:00
|
|
|
/**
|
|
|
|
* @requires extension ev
|
|
|
|
*/
|
2016-06-08 23:03:37 +02:00
|
|
|
class EvLoopTest extends Test {
|
2016-06-08 16:12:42 +02:00
|
|
|
public function getFactory() {
|
|
|
|
$factory = $this->getMockBuilder(DriverFactory::class)->getMock();
|
|
|
|
|
|
|
|
$factory->method('create')
|
2017-01-06 00:21:30 +01:00
|
|
|
->willReturn(new EvLoop);
|
2016-06-08 16:12:42 +02:00
|
|
|
|
|
|
|
return $factory;
|
|
|
|
}
|
|
|
|
}
|