Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/ExtEventLoop.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ final class ExtEventLoop implements LoopInterface
private $signals;
private $signalEvents = array();

public function __construct(EventBaseConfig $config = null)
public function __construct()
{
$config = new EventBaseConfig();
$config->requireFeatures(EventBaseConfig::FEATURE_FDS);

$this->eventBase = new EventBase($config);
$this->futureTickQueue = new FutureTickQueue();
$this->timerEvents = new SplObjectStorage();
Expand Down
8 changes: 1 addition & 7 deletions tests/ExtEventLoopTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@ public function createLoop($readStreamCompatible = false)
$this->markTestSkipped('ext-event tests skipped because ext-event is not installed.');
}

$cfg = null;
if ($readStreamCompatible) {
$cfg = new \EventConfig();
$cfg->requireFeatures(\EventConfig::FEATURE_FDS);
}

return new ExtEventLoop($cfg);
return new ExtEventLoop();
}

public function createStream()
Expand Down