Skip to content

Commit ffa628a

Browse files
cyppeclaude
andcommitted
Fix pre-existing Pint and test issues
- Fix PrismFake.php Pint style violations (auto-fixed by Pint) - Fix LaravelMcpToolTest assertion to match compact JSON output from Response::structured() Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 01ce599 commit ffa628a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Testing/PrismFake.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Prism\Prism\Images\Request as ImageRequest;
1919
use Prism\Prism\Images\Response as ImageResponse;
2020
use Prism\Prism\Moderation\Response as ModerationResponse;
21+
use Prism\Prism\Prism;
2122
use Prism\Prism\Providers\Provider;
2223
use Prism\Prism\Streaming\EventID;
2324
use Prism\Prism\Streaming\Events\StepFinishEvent;
@@ -153,7 +154,7 @@ public function speechToText(SpeechToTextRequest $request): AudioTextResponse
153154
*
154155
* Behavior:
155156
* 1. Records the incoming {@link TextRequest}
156-
* 2. Pulls the next fixture from the list supplied to {@see \Prism\Prism\Prism::fake()}.
157+
* 2. Pulls the next fixture from the list supplied to {@see Prism::fake()}.
157158
* 3. Yields an appropriate stream of events.
158159
*
159160
* Supported fixture type:

tests/Tools/LaravelMcpToolTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ public function schema(JsonSchema $schema): array
6464

6565
$result = $tool->handle();
6666

67-
expect($result)->toContain('"status": "success"')
68-
->and($result)->toContain('"id": 123')
69-
->and($result)->toContain('"name": "Test"');
67+
expect($result)->toContain('"status":"success"')
68+
->and($result)->toContain('"id":123')
69+
->and($result)->toContain('"name":"Test"');
7070
});
7171

7272
it('can handle a tool that returns a ResponseFactory from Response::make()', function (): void {

0 commit comments

Comments
 (0)