mirror of
https://github.com/danog/amp.git
synced 2024-11-27 04:24:42 +01:00
Remove unneeded support check
This commit is contained in:
parent
02c2fcf0fa
commit
c80f264e7e
@ -11,14 +11,10 @@ use Interop\Async\Loop\Test;
|
||||
*/
|
||||
class EvLoopTest extends Test {
|
||||
public function getFactory() {
|
||||
if (!EvLoop::supported()) {
|
||||
$this->markTestSkipped("EvLoop is not available");
|
||||
}
|
||||
|
||||
$factory = $this->getMockBuilder(DriverFactory::class)->getMock();
|
||||
|
||||
$factory->method('create')
|
||||
->willReturn(new EvLoop());
|
||||
->willReturn(new EvLoop);
|
||||
|
||||
return $factory;
|
||||
}
|
||||
|
@ -11,14 +11,10 @@ use Interop\Async\Loop\Test;
|
||||
*/
|
||||
class EventLoopTest extends Test {
|
||||
public function getFactory() {
|
||||
if (!EventLoop::supported()) {
|
||||
$this->markTestSkipped("EventLoop is not available");
|
||||
}
|
||||
|
||||
$factory = $this->getMockBuilder(DriverFactory::class)->getMock();
|
||||
|
||||
$factory->method('create')
|
||||
->willReturn(new EventLoop());
|
||||
->willReturn(new EventLoop);
|
||||
|
||||
return $factory;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ class UvLoopTest extends Test {
|
||||
$factory = $this->getMockBuilder(DriverFactory::class)->getMock();
|
||||
|
||||
$factory->method('create')
|
||||
->willReturn(new UvLoop());
|
||||
->willReturn(new UvLoop);
|
||||
|
||||
return $factory;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user