Skip to content

Commit 4a17636

Browse files
klapaudiusgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 89fd592 commit 4a17636

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/Protocol/MCPProtocolTest.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace KLP\KlpMcpServer\Tests\Protocol;
44

5-
use Exception;
65
use KLP\KlpMcpServer\Protocol\MCPProtocol;
76
use KLP\KlpMcpServer\Transports\TransportInterface;
87
use PHPUnit\Framework\Attributes\Small;
@@ -13,6 +12,7 @@
1312
class MCPProtocolTest extends TestCase
1413
{
1514
private TransportInterface|MockObject $mockTransport;
15+
1616
private MCPProtocol $mcpProtocol;
1717

1818
protected function setUp(): void
@@ -24,7 +24,7 @@ protected function setUp(): void
2424
/**
2525
* Test that connect method starts the transport
2626
*/
27-
public function testConnectStartsTransport(): void
27+
public function test_connect_starts_transport(): void
2828
{
2929
$this->mockTransport
3030
->expects($this->once())
@@ -45,7 +45,7 @@ public function testConnectStartsTransport(): void
4545
/**
4646
* Test connect processes messages when transport is connected
4747
*/
48-
public function testConnectProcessesMessages(): void
48+
public function test_connect_processes_messages(): void
4949
{
5050
$messages = ['message1', 'message2'];
5151

@@ -65,7 +65,8 @@ public function testConnectProcessesMessages(): void
6565
->expects($matcher = $this->exactly(count($messages)))
6666
->method('send')
6767
->with($this->callback(function ($message) use ($messages, $matcher) {
68-
$this->assertEquals($messages[$matcher->numberOfInvocations()-1], $message);
68+
$this->assertEquals($messages[$matcher->numberOfInvocations() - 1], $message);
69+
6970
return true;
7071
}));
7172

@@ -79,7 +80,7 @@ public function testConnectProcessesMessages(): void
7980
/**
8081
* Test that connect method ignores null messages without sending
8182
*/
82-
public function testConnectIgnoresNullMessages(): void
83+
public function test_connect_ignores_null_messages(): void
8384
{
8485
$messages = [null, 'validMessage', null];
8586

@@ -110,7 +111,7 @@ public function testConnectIgnoresNullMessages(): void
110111
/**
111112
* Test that connect sends messages using the transport's send method
112113
*/
113-
public function testConnectSendsMessages(): void
114+
public function test_connect_sends_messages(): void
114115
{
115116
$messages = ['test_message'];
116117

0 commit comments

Comments
 (0)