1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 04:24:42 +01:00
amp/test/NativeLoopTest.php
Aaron Piotrowski 4aa8c5d550 Add loop tests
2016-05-27 15:07:05 -05:00

19 lines
386 B
PHP

<?php
namespace Amp\Test\Loop;
use Amp\Loop\NativeLoop;
use Interop\Async\Loop\DriverFactory;
use Interop\Async\Loop\Test;
class NativeLoopTest extends Test {
public function getFactory() {
$factory = $this->getMockBuilder(DriverFactory::class)->getMock();
$factory->method('create')
->willReturn(new NativeLoop());
return $factory;
}
}