8000 fix formatting per psr-2 · reactphp/event-loop@ebed326 · GitHub
[go: up one dir, main page]

Skip to content

Commit ebed326

Browse files
committed
fix formatting per psr-2
1 parent 3b797b9 commit ebed326

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

tests/Timer/TimersTest.php

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,24 @@
66
use React\EventLoop\Timer\Timer;
77
use React\EventLoop\Timer\Timers;
88

9-
class TimersTest extends TestCase {
10-
public function testBlockedTimer() {
11-
$loop = $this->getMockBuilder('React\EventLoop\LoopInterface')
12-
->getMock();
13-
14-
$timers = new Timers();
15-
$timers->tick();
16-
17-
// simulate a bunch of processing on stream events,
18-
// part of which schedules a future timer...
19-
sleep(1);
20-
$timers->add(new Timer($loop, 0.5, function() {
21-
$this->fail("Timer shouldn't be called");
22-
}));
9+
class TimersTest extends TestCase
10+
{
11+
public function testBlockedTimer()
12+
{
13+
$loop = $this
14+
->getMockBuilder('React\EventLoop\LoopInterface')
15+
->getMock();
16+
17+
$timers = new Timers();
18+
$timers->tick();
19+
20+
// simulate a bunch of processing on stream events,
21+
// part of which schedules a future timer...
22+
sleep(1);
23+
$timers->add(new Timer($loop, 0.5, function () {
24+
$this->fail("Timer shouldn't be called");
25+
}));
2326

24-
$timers->tick();
25-
}
27+
$timers->tick();
28+
}
2629
}

0 commit comments

Comments
 (0)
0