mirror of
https://github.com/danog/amp.git
synced 2025-01-22 13:21:16 +01:00
Fix code style
This commit is contained in:
parent
5e93318d85
commit
36794da8e9
@ -100,9 +100,9 @@ abstract class DriverTest extends TestCase {
|
||||
|
||||
public function testLoopTerminatesWithOnlyUnreferencedWatchers() {
|
||||
$this->start(function (Driver $loop) use (&$end) {
|
||||
$loop->unreference($loop->onReadable(STDIN, function() {}));
|
||||
$w = $loop->delay(10000000, function() {});
|
||||
$loop->defer(function() use ($loop, $w) { $loop->cancel($w); });
|
||||
$loop->unreference($loop->onReadable(STDIN, function () {}));
|
||||
$w = $loop->delay(10000000, function () {});
|
||||
$loop->defer(function () use ($loop, $w) { $loop->cancel($w); });
|
||||
$end = true;
|
||||
});
|
||||
$this->assertTrue($end);
|
||||
|
Loading…
x
Reference in New Issue
Block a user