Skip to content

Commit f336c00

Browse files
klapaudiusgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 9565b67 commit f336c00

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/Protocol/MCPProtocolTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ public function test_handle_message_handles_no_method(): void
280280
$this->assertEquals(1, $data['id']);
281281
$this->assertEquals(-32600, $data['error']['code']);
282282
$this->assertEquals('Invalid Request: Message format not recognized', $data['error']['message']);
283+
283284
return true;
284285
}));
285286

@@ -307,6 +308,7 @@ public function test_handle_message_handles_invalid_params(): void
307308
$this->assertEquals(-32602, $data['error']['code']);
308309

309310
$this->assertEquals('An error occurred. Invalid params param1', $data['error']['message']);
311+
310312
return true;
311313
}));
312314

@@ -334,6 +336,7 @@ public function test_handle_message_handles_handler_throw_exception(): void
334336
$this->assertEquals(1, $data['id']);
335337
$this->assertEquals(-32603, $data['error']['code']);
336338
$this->assertEquals('An error occurred.', $data['error']['message']);
339+
337340
return true;
338341
}));
339342
$this->mcpProtocol->registerRequestHandler($mockHandler);
@@ -351,7 +354,7 @@ public function test_handle_message_handles_notification_handler_throw_exception
351354
$mockHandler->method('isHandle')->with('notify.method')->willReturn(true);
352355
$mockHandler->expects($this->once())->method('execute')
353356
->with(['param1' => 'value1'])
354-
->willThrowException(new \Exception('An error occurred.'));;
357+
->willThrowException(new \Exception('An error occurred.'));
355358
$this->mcpProtocol->registerNotificationHandler($mockHandler);
356359

357360
$this->mockTransport
@@ -363,6 +366,7 @@ public function test_handle_message_handles_notification_handler_throw_exception
363366
$this->assertEquals('2.0', $data['jsonrpc']);
364367
$this->assertEquals(-32603, $data['error']['code']);
365368
$this->assertEquals('An error occurred.', $data['error']['message']);
369+
366370
return true;
367371
}));
368372

0 commit comments

Comments
 (0)