Skip to content

Commit 9a6d24c

Browse files
authored
Fix codestyle pipeline for 0.7.1 (#402)
1 parent 9aa18f3 commit 9a6d24c

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

tests/Unit/Client/Transport/HttpTransportTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public function testSseBufferIsBoundedByConfiguredCap(): void
4343

4444
$this->invokeProcessSseStream($transport);
4545

46-
self::assertSame('', $this->readPrivate($transport, 'sseBuffer'), 'buffer must be cleared on abort');
47-
self::assertNull($this->readPrivate($transport, 'activeStream'), 'stream must be released on abort');
46+
$this->assertSame('', $this->readPrivate($transport, 'sseBuffer'), 'buffer must be cleared on abort');
47+
$this->assertNull($this->readPrivate($transport, 'activeStream'), 'stream must be released on abort');
4848
}
4949

5050
#[TestDox('aborting the SSE stream fails the in-flight request immediately instead of waiting for its timeout')]
@@ -60,9 +60,9 @@ public function testAbortFailsPendingRequestFast(): void
6060
$this->invokeProcessSseStream($transport);
6161

6262
$response = $state->consumeResponse(1);
63-
self::assertInstanceOf(Error::class, $response);
64-
self::assertSame(Error::INTERNAL_ERROR, $response->code);
65-
self::assertSame(1, $response->id);
63+
$this->assertInstanceOf(Error::class, $response);
64+
$this->assertSame(Error::INTERNAL_ERROR, $response->code);
65+
$this->assertSame(1, $response->id);
6666
}
6767

6868
#[TestDox('well-formed delimited events are parsed and dispatched')]
@@ -78,7 +78,7 @@ public function testWellFormedEventsStillParse(): void
7878

7979
$this->invokeProcessSseStream($transport);
8080

81-
self::assertSame(['hello', 'world'], $messages);
81+
$this->assertSame(['hello', 'world'], $messages);
8282
}
8383

8484
#[TestDox('the buffer cap must be a positive number of bytes')]

tests/Unit/Client/Transport/StdioTransportTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testInputBufferIsBounded(): void
3333

3434
$this->invokeProcessInput($transport);
3535

36-
self::assertSame('', $this->readPrivate($transport, 'inputBuffer'), 'buffer must be cleared on abort');
36+
$this->assertSame('', $this->readPrivate($transport, 'inputBuffer'), 'buffer must be cleared on abort');
3737
}
3838

3939
#[TestDox('aborting the input fails the in-flight request immediately')]
@@ -49,9 +49,9 @@ public function testAbortFailsPendingRequestFast(): void
4949
$this->invokeProcessInput($transport);
5050

5151
$response = $state->consumeResponse(1);
52-
self::assertInstanceOf(Error::class, $response);
53-
self::assertSame(Error::INTERNAL_ERROR, $response->code);
54-
self::assertSame(1, $response->id);
52+
$this->assertInstanceOf(Error::class, $response);
53+
$this->assertSame(Error::INTERNAL_ERROR, $response->code);
54+
$this->assertSame(1, $response->id);
5555
}
5656

5757
#[TestDox('newline-delimited frames within the cap are parsed and dispatched')]
@@ -67,7 +67,7 @@ public function testWellFormedFramesStillParse(): void
6767

6868
$this->invokeProcessInput($transport);
6969

70-
self::assertSame(['{"a":1}', '{"b":2}'], $messages);
70+
$this->assertSame(['{"a":1}', '{"b":2}'], $messages);
7171
}
7272

7373
#[TestDox('the buffer cap must be a positive number of bytes')]

tests/Unit/Server/Transport/StdioTransportTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function testOverlongLineIsDiscarded(): void
2626

2727
$this->pumpToEof($transport);
2828

29-
self::assertSame([], $messages, 'the over-length line must never be dispatched');
29+
$this->assertSame([], $messages, 'the over-length line must never be dispatched');
3030
}
3131

3232
#[TestDox('processing resumes with the next line after an over-length line is discarded')]
@@ -37,7 +37,7 @@ public function testRecoversAfterOverlongLine(): void
3737

3838
$this->pumpToEof($transport);
3939

40-
self::assertSame(['{"valid":1}'], $messages);
40+
$this->assertSame(['{"valid":1}'], $messages);
4141
}
4242

4343
#[TestDox('a normal line within the cap is dispatched')]
@@ -48,7 +48,7 @@ public function testNormalLineIsDispatched(): void
4848

4949
$this->pumpToEof($transport);
5050

51-
self::assertSame(['{"jsonrpc":"2.0","id":1}'], $messages);
51+
$this->assertSame(['{"jsonrpc":"2.0","id":1}'], $messages);
5252
}
5353

5454
#[TestDox('the line byte cap must be a positive number of bytes')]

0 commit comments

Comments
 (0)