Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoebi committed Oct 28, 2024
1 parent b352336 commit 963904b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/WebsocketClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public function testStreamMultipleChunks(): void

public function testStreamWithInterleavedControlFrames(): void
{
$packets = \array_map(fn(string $packet) => [$packet], [
$packets = \array_map(fn (string $packet) => [$packet], [
compile(WebsocketFrameType::Text, false, false, 'chunk1'),
compile(WebsocketFrameType::Continuation, false, false, 'chunk2'),
compile(WebsocketFrameType::Ping, false, true, "1"),
Expand All @@ -279,7 +279,7 @@ public function testStreamWithInterleavedControlFrames(): void

$socket = $this->createSocket();
$future = new DeferredFuture();
$socket->expects($this->any())->method("read")->willReturnCallback(function() use ($future) {
$socket->expects($this->any())->method("read")->willReturnCallback(function () use ($future) {
$future->getFuture()->await();
});
$socket->expects($this->atLeastOnce())
Expand Down

0 comments on commit 963904b

Please sign in to comment.