1
0
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:
Aaron Piotrowski 2017-01-05 17:21:30 -06:00
parent 02c2fcf0fa
commit c80f264e7e
3 changed files with 3 additions and 11 deletions

View File

@ -11,14 +11,10 @@ use Interop\Async\Loop\Test;
*/ */
class EvLoopTest extends Test { class EvLoopTest extends Test {
public function getFactory() { public function getFactory() {
if (!EvLoop::supported()) {
$this->markTestSkipped("EvLoop is not available");
}
$factory = $this->getMockBuilder(DriverFactory::class)->getMock(); $factory = $this->getMockBuilder(DriverFactory::class)->getMock();
$factory->method('create') $factory->method('create')
->willReturn(new EvLoop()); ->willReturn(new EvLoop);
return $factory; return $factory;
} }

View File

@ -11,14 +11,10 @@ use Interop\Async\Loop\Test;
*/ */
class EventLoopTest extends Test { class EventLoopTest extends Test {
public function getFactory() { public function getFactory() {
if (!EventLoop::supported()) {
$this->markTestSkipped("EventLoop is not available");
}
$factory = $this->getMockBuilder(DriverFactory::class)->getMock(); $factory = $this->getMockBuilder(DriverFactory::class)->getMock();
$factory->method('create') $factory->method('create')
->willReturn(new EventLoop()); ->willReturn(new EventLoop);
return $factory; return $factory;
} }

View File

@ -14,7 +14,7 @@ class UvLoopTest extends Test {
$factory = $this->getMockBuilder(DriverFactory::class)->getMock(); $factory = $this->getMockBuilder(DriverFactory::class)->getMock();
$factory->method('create') $factory->method('create')
->willReturn(new UvLoop()); ->willReturn(new UvLoop);
return $factory; return $factory;
} }