Skip to content

Commit d8ad5fd

Browse files
committed
Tests for LoopInterface::{run, stop}
1 parent e8173fe commit d8ad5fd

3 files changed

Lines changed: 0 additions & 12 deletions

File tree

LibEvLoop.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,21 +138,17 @@ public function tick()
138138

139139
public function run()
140140
{
141-
// @codeCoverageIgnoreStart
142141
if ($this->suspended) {
143142
$this->suspended = false;
144143
$this->loop->resume();
145144
} else {
146145
$this->loop->run();
147146
}
148-
// @codeCoverageIgnoreEnd
149147
}
150148

151149
public function stop()
152150
{
153-
// @codeCoverageIgnoreStart
154151
$this->loop->suspend();
155152
$this->suspended = true;
156-
// @codeCoverageIgnoreEnd
157153
}
158154
}

LibEventLoop.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,15 +226,11 @@ public function tick()
226226

227227
public function run()
228228
{
229-
// @codeCoverageIgnoreStart
230229
event_base_loop($this->base);
231-
// @codeCoverageIgnoreEnd
232230
}
233231

234232
public function stop()
235233
{
236-
// @codeCoverageIgnoreStart
237234
event_base_loopexit($this->base);
238-
// @codeCoverageIgnoreEnd
239235
}
240236
}

StreamSelectLoop.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,19 +156,15 @@ public function tick()
156156

157157
public function run()
158158
{
159-
// @codeCoverageIgnoreStart
160159
$this->running = true;
161160

162161
while ($this->tick()) {
163162
// NOOP
164163
}
165-
// @codeCoverageIgnoreEnd
166164
}
167165

168166
public function stop()
169167
{
170-
// @codeCoverageIgnoreStart
171168
$this->running = false;
172-
// @codeCoverageIgnoreEnd
173169
}
174170
}

0 commit comments

Comments
 (0)