Add happy cases for functional tests of example 1 (#91)
This commit is contained in:
parent
4486776e7d
commit
9ff6516e5b
1 changed files with 64 additions and 13 deletions
|
|
@ -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',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue