[Server] Reorganize server handlers and transport structure for better organization (#86)
* refactor: reorganize server handlers and transport structure * feat: move the test files to corresponding directories * fix: linter issues * fix: correct PHPDoc formatting and streamline handler imports * refactor: update import statement for ServerBuilder to Builder
This commit is contained in:
parent
3dcd2f717a
commit
41486bfaa4
1 changed files with 65 additions and 67 deletions
|
|
@ -11,8 +11,8 @@
|
|||
|
||||
namespace Mcp\Tests\Unit;
|
||||
|
||||
use Mcp\JsonRpc\Handler;
|
||||
use Mcp\Server;
|
||||
use Mcp\Server\Handler\JsonRpcHandler;
|
||||
use Mcp\Server\Transport\InMemoryTransport;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
|
|
@ -20,7 +20,7 @@ class ServerTest extends TestCase
|
|||
{
|
||||
public function testJsonExceptions()
|
||||
{
|
||||
$handler = $this->getMockBuilder(Handler::class)
|
||||
$handler = $this->getMockBuilder(JsonRpcHandler::class)
|
||||
->disableOriginalConstructor()
|
||||
->onlyMethods(['process'])
|
||||
->getMock();
|
||||
|
|
|
|||
Loading…
Reference in a new issue