forked from modelcontextprotocol/php-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHttpClientCommunicationTest.php
More file actions
64 lines (59 loc) · 2.28 KB
/
HttpClientCommunicationTest.php
File metadata and controls
64 lines (59 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/*
* This file is part of the official PHP MCP SDK.
*
* A collaboration between Symfony and the PHP Foundation.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Mcp\Tests\Inspector\Http;
final class HttpClientCommunicationTest extends HttpInspectorSnapshotTestCase
{
protected function setUp(): void
{
$this->markTestSkipped('Test skipped: SDK cannot handle logging/setLevel requests required by logging capability, and built-in PHP server does not support sampling.');
}
public static function provideMethods(): array
{
return [
...parent::provideMethods(),
'Prepare Project Briefing (Simple)' => [
'method' => 'tools/call',
'options' => [
'toolName' => 'prepare_project_briefing',
'toolArgs' => [
'projectName' => 'Website Redesign',
'milestones' => ['Discovery', 'Design', 'Development', 'Testing'],
],
],
'testName' => 'prepare_project_briefing_simple',
],
'Prepare Project Briefing (Complex)' => [
'method' => 'tools/call',
'options' => [
'toolName' => 'prepare_project_briefing',
'toolArgs' => [
'projectName' => 'Mobile App Launch',
'milestones' => ['Market Research', 'UI/UX Design', 'MVP Development', 'Beta Testing', 'Marketing Campaign', 'Public Launch'],
],
],
'testName' => 'prepare_project_briefing_complex',
],
'Run Service Maintenance' => [
'method' => 'tools/call',
'options' => [
'toolName' => 'run_service_maintenance',
'toolArgs' => [
'serviceName' => 'Payment Gateway API',
],
],
'testName' => 'run_service_maintenance',
],
];
}
protected function getServerScript(): string
{
return \dirname(__DIR__, 3).'/examples/server/client-communication/server.php';
}
}