Add happy cases for functional tests of example 1 (#91)

This commit is contained in:
Christopher Hertel 2025-10-12 14:52:58 +02:00 • committed by GitHub
commit 9ff6516e5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,17 @@ final class StdioCalculatorExampleTest extends InspectorSnapshotTestCase
{
return [
...parent::provideListMethods(),
'Calculate Sum' => [
'method' => 'tools/call',
'toolName' => 'calculate',
'toolArgs' => ['a' => 12.5, 'b' => 7.3, 'operation' => 'add'],
],
'Read Config' => [
'method' => 'resources/read',
'toolName' => null, // can be removed with newer PHPUnit versions
'toolArgs' => [], // can be removed with newer PHPUnit versions
'uri' => 'config://calculator/settings',
],
];
}