[Client] add client conformance test suite (#279)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Christopher Hertel 2026-04-26 12:33:21 +02:00 • committed by GitHub
commit abae36e888
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,10 +41,10 @@ class InitializeHandlerTest extends TestCase
$session = $this->createMock(SessionInterface::class);
$session->expects($this->exactly(2))
->method('set')
->willReturnCallback(function (string $key, array $value): void {
->willReturnCallback(function (string $key, mixed $value): void {
match ($key) {
'client_info' => $this->assertSame(['name' => 'client-app', 'version' => '1.0.0'], $value),
'client_capabilities' => $this->assertSame([], $value),
'client_capabilities' => $this->assertEquals(new \stdClass(), $value),
default => $this->fail("Unexpected session key: {$key}"),
};
});