1
0
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:
Niklas Keller 2017-07-09 14:17:47 +02:00
parent 5e93318d85
commit 36794da8e9

View File

@ -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);