Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"pint --test",
"rector --dry-run"
],
"test:unit": "pest --ci --coverage --min=91.4",
"test:unit": "pest --ci --coverage --min=91.7",
"test:types": "phpstan",
"test": [
"@test:lint",
Expand Down
2 changes: 0 additions & 2 deletions src/Server/Content/Blob.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ public function toResource(Resource $resource): array
return $this->mergeMeta([
'blob' => base64_encode($this->content),
'uri' => $resource->uri(),
'name' => $resource->name(),
'title' => $resource->title(),
'mimeType' => $resource->mimeType(),
]);
}
Expand Down
2 changes: 0 additions & 2 deletions src/Server/Content/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ public function toResource(Resource $resource): array
return $this->mergeMeta([
'text' => $this->text,
'uri' => $resource->uri(),
'name' => $resource->name(),
'title' => $resource->title(),
'mimeType' => $resource->mimeType(),
]);
}
Expand Down
2 changes: 0 additions & 2 deletions tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,7 @@ function expectedReadResourceResponse(): array
'contents' => [[
'text' => '2025-07-02 12:00:00 Error: Something went wrong.',
'uri' => 'file://resources/last-log-line-resource',
'title' => 'Last Log Line Resource',
'mimeType' => 'text/plain',
'name' => 'last-log-line-resource',
]],
],
];
Expand Down
4 changes: 0 additions & 4 deletions tests/Unit/Content/BlobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
expect($payload)->toEqual([
'blob' => base64_encode('raw-bytes'),
'uri' => 'file://avatar.png',
'name' => 'avatar',
'title' => 'User Avatar',
'mimeType' => 'image/png',
]);
});
Expand All @@ -49,8 +47,6 @@
expect($payload)->toMatchArray([
'blob' => base64_encode('raw-bytes'),
'uri' => 'file://avatar.png',
'name' => 'avatar',
'title' => 'User Avatar',
'mimeType' => 'image/png',
'_meta' => ['encoding' => 'base64'],
]);
Expand Down
4 changes: 0 additions & 4 deletions tests/Unit/Content/TextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
expect($payload)->toEqual([
'text' => 'Hello world',
'uri' => 'file://readme.txt',
'name' => 'readme',
'title' => 'Readme File',
'mimeType' => 'text/plain',
]);
});
Expand All @@ -49,8 +47,6 @@
expect($payload)->toEqual([
'text' => 'Hello world',
'uri' => 'file://readme.txt',
'name' => 'readme',
'title' => 'Readme File',
'mimeType' => 'text/plain',
'_meta' => ['author' => 'John'],
]);
Expand Down
2 changes: 0 additions & 2 deletions tests/Unit/Methods/ReadResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@
[
'text' => 'Resource content with result meta',
'uri' => 'file://resources/with-result-meta.txt',
'name' => 'resource-with-result-meta-resource',
'title' => 'Resource With Result Meta Resource',
'mimeType' => 'text/plain',
],
],
Expand Down
8 changes: 0 additions & 8 deletions tests/Unit/Resources/ResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ public function handle(): Response
$expected = [
'text' => 'This is a test resource.',
'uri' => $resource->uri(),
'name' => $resource->name(),
'title' => $resource->title(),
'mimeType' => $resource->mimeType(),
];

Expand Down Expand Up @@ -61,8 +59,6 @@ public function handle(): Response
$expected = [
'blob' => base64_encode($binaryData),
'uri' => 'file://resources/I_CAN_BE_OVERRIDDEN',
'name' => $resource->name(),
'title' => $resource->title(),
'mimeType' => 'image/png',
];

Expand Down Expand Up @@ -90,8 +86,6 @@ public function handle(): Response
'text' => 'This is a test resource.',

'uri' => $resource->uri(),
'name' => $resource->name(),
'title' => $resource->title(),
'mimeType' => $resource->mimeType(),
];

Expand All @@ -118,8 +112,6 @@ public function handle(): Response
'blob' => base64_encode('This is a test resource.'),

'uri' => $resource->uri(),
'name' => $resource->name(),
'title' => $resource->title(),
'mimeType' => $resource->mimeType(),
];

Expand Down