php-sdk/tests/Unit/Server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Christopher Hertel a987a3a248
[Server] Throw the SDK's own RuntimeException from FileSessionStore (#404)
The constructor guarded its unwritable-directory case with the global
`\RuntimeException`, the only throw in `src/` still outside
`Mcp\Exception\ExceptionInterface`. A consumer wrapping server setup in a
`catch (ExceptionInterface)` missed it and got an unhandled SPL exception on
a misconfigured session directory instead.

`Mcp\Exception\RuntimeException` extends `\RuntimeException`, so this is
additive: existing `catch (\RuntimeException)` blocks keep working.

The constructor had no test coverage at all, so this adds one for the throw
plus the directory-creation and write/read paths around it.
2026-08-14 21:29:26 +02:00
..
Handler/Request [Server] Fix completion/complete crash for plain ref/resource (#388) 2026-07-06 00:09:45 +02:00
Session [Server] Throw the SDK's own RuntimeException from FileSessionStore (#404) 2026-08-14 21:29:26 +02:00
Transport Fix codestyle pipeline for 0.7.1 (#402) 2026-07-27 12:16:10 +02:00
BuilderTest.php [Server] Defer element loading to first registry read (#389) 2026-07-14 23:55:31 +02:00
ProtocolTest.php Encapsulate session handling from protocol to new SessionManager (#247) 2026-03-10 18:09:15 +01:00
SessionSubscriptionManagerTest.php Add missing handler for resource subscribe and unsubscribe (#220) 2026-02-18 00:11:35 +01:00