Skip to content

Commit 859ad49

Browse files
committed
Use imports instead of FQCN inline
1 parent c3ab00e commit 859ad49

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/Bridge/Ollama/OllamaClientTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
use PHPUnit\Framework\TestCase;
1717
use Symfony\AI\Platform\Bridge\Ollama\Ollama;
1818
use Symfony\AI\Platform\Bridge\Ollama\OllamaClient;
19+
use Symfony\AI\Platform\Bridge\Ollama\OllamaResultConverter;
1920
use Symfony\AI\Platform\Bridge\Ollama\PlatformFactory;
2021
use Symfony\AI\Platform\Model;
22+
use Symfony\AI\Platform\Result\RawHttpResult;
2123
use Symfony\AI\Platform\Result\StreamResult;
2224
use Symfony\Component\HttpClient\MockHttpClient;
2325
use Symfony\Component\HttpClient\Response\JsonMockResponse;
@@ -153,8 +155,8 @@ public function testStreamingConverterWithDirectResponse()
153155
]);
154156

155157
$mockResponse = $mockHttpClient->request('GET', 'http://test.example');
156-
$rawResult = new \Symfony\AI\Platform\Result\RawHttpResult($mockResponse);
157-
$converter = new \Symfony\AI\Platform\Bridge\Ollama\OllamaResultConverter();
158+
$rawResult = new RawHttpResult($mockResponse);
159+
$converter = new OllamaResultConverter();
158160

159161
$result = $converter->convert($rawResult, ['stream' => true]);
160162

@@ -170,7 +172,7 @@ public function testStreamingConverterWithDirectResponse()
170172
]);
171173

172174
$regularMockResponse = $regularMockHttpClient->request('GET', 'http://test.example');
173-
$regularRawResult = new \Symfony\AI\Platform\Result\RawHttpResult($regularMockResponse);
175+
$regularRawResult = new RawHttpResult($regularMockResponse);
174176
$regularResult = $converter->convert($regularRawResult, ['stream' => false]);
175177

176178
$this->assertNotInstanceOf(StreamResult::class, $regularResult);

0 commit comments

Comments
 (0)