52
52
#[Small]
53
53
final class AgentTest extends TestCase
54
54
{
55
- public function testConstructorInitializesWithDefaults (): void
55
+ public function testConstructorInitializesWithDefaults ()
56
56
{
57
57
$ platform = $ this ->createMock (PlatformInterface::class);
58
58
$ model = $ this ->createMock (Model::class);
@@ -62,7 +62,7 @@ public function testConstructorInitializesWithDefaults(): void
62
62
$ this ->assertInstanceOf (AgentInterface::class, $ agent );
63
63
}
64
64
65
- public function testConstructorInitializesWithProcessors (): void
65
+ public function testConstructorInitializesWithProcessors ()
66
66
{
67
67
$ platform = $ this ->createMock (PlatformInterface::class);
68
68
$ model = $ this ->createMock (Model::class);
@@ -74,7 +74,7 @@ public function testConstructorInitializesWithProcessors(): void
74
74
$ this ->assertInstanceOf (AgentInterface::class, $ agent );
75
75
}
76
76
77
- public function testConstructorSetsAgentOnAgentAwareProcessors (): void
77
+ public function testConstructorSetsAgentOnAgentAwareProcessors ()
78
78
{
79
79
$ platform = $ this ->createMock (PlatformInterface::class);
80
80
$ model = $ this ->createMock (Model::class);
@@ -97,7 +97,7 @@ public function setAgent(AgentInterface $agent): void
97
97
$ this ->assertSame ($ agent , $ agentAwareProcessor ->agent );
98
98
}
99
99
100
- public function testConstructorThrowsExceptionForInvalidInputProcessor (): void
100
+ public function testConstructorThrowsExceptionForInvalidInputProcessor ()
101
101
{
102
102
$ platform = $ this ->createMock (PlatformInterface::class);
103
103
$ model = $ this ->createMock (Model::class);
@@ -110,7 +110,7 @@ public function testConstructorThrowsExceptionForInvalidInputProcessor(): void
110
110
new Agent ($ platform , $ model , [$ invalidProcessor ]);
111
111
}
112
112
113
- public function testConstructorThrowsExceptionForInvalidOutputProcessor (): void
113
+ public function testConstructorThrowsExceptionForInvalidOutputProcessor ()
114
114
{
115
115
$ platform = $ this ->createMock (PlatformInterface::class);
116
116
$ model = $ this ->createMock (Model::class);
@@ -123,7 +123,7 @@ public function testConstructorThrowsExceptionForInvalidOutputProcessor(): void
123
123
new Agent ($ platform , $ model , [], [$ invalidProcessor ]);
124
124
}
125
125
126
- public function testCallProcessesInputThroughProcessors (): void
126
+ public function testCallProcessesInputThroughProcessors ()
127
127
{
128
128
$ platform = $ this ->createMock (PlatformInterface::class);
129
129
$ model = $ this ->createMock (Model::class);
@@ -149,7 +149,7 @@ public function testCallProcessesInputThroughProcessors(): void
149
149
$ this ->assertSame ($ result , $ actualResult );
150
150
}
151
151
152
- public function testCallProcessesOutputThroughProcessors (): void
152
+ public function testCallProcessesOutputThroughProcessors ()
153
153
{
154
154
$ platform = $ this ->createMock (PlatformInterface::class);
155
155
$ model = $ this ->createMock (Model::class);
@@ -175,7 +175,7 @@ public function testCallProcessesOutputThroughProcessors(): void
175
175
$ this ->assertSame ($ result , $ actualResult );
176
176
}
177
177
178
- public function testCallThrowsExceptionForAudioInputWithoutSupport (): void
178
+ public function testCallThrowsExceptionForAudioInputWithoutSupport ()
179
179
{
180
180
$ platform = $ this ->createMock (PlatformInterface::class);
181
181
$ model = $ this ->createMock (Model::class);
@@ -192,7 +192,7 @@ public function testCallThrowsExceptionForAudioInputWithoutSupport(): void
192
192
$ agent ->call ($ messages );
193
193
}
194
194
195
- public function testCallThrowsExceptionForImageInputWithoutSupport (): void
195
+ public function testCallThrowsExceptionForImageInputWithoutSupport ()
196
196
{
197
197
$ platform = $ this ->createMock (PlatformInterface::class);
198
198
$ model = $ this ->createMock (Model::class);
@@ -209,7 +209,7 @@ public function testCallThrowsExceptionForImageInputWithoutSupport(): void
209
209
$ agent ->call ($ messages );
210
210
}
211
211
212
- public function testCallAllowsAudioInputWithSupport (): void
212
+ public function testCallAllowsAudioInputWithSupport ()
213
213
{
214
214
$ platform = $ this ->createMock (PlatformInterface::class);
215
215
$ model = $ this ->createMock (Model::class);
@@ -234,7 +234,7 @@ public function testCallAllowsAudioInputWithSupport(): void
234
234
$ this ->assertSame ($ result , $ actualResult );
235
235
}
236
236
237
- public function testCallAllowsImageInputWithSupport (): void
237
+ public function testCallAllowsImageInputWithSupport ()
238
238
{
239
239
$ platform = $ this ->createMock (PlatformInterface::class);
240
240
$ model = $ this ->createMock (Model::class);
@@ -258,7 +258,7 @@ public function testCallAllowsImageInputWithSupport(): void
258
258
$ this ->assertSame ($ result , $ actualResult );
259
259
}
260
260
261
- public function testCallHandlesClientException (): void
261
+ public function testCallHandlesClientException ()
262
262
{
263
263
$ platform = $ this ->createMock (PlatformInterface::class);
264
264
$ model = $ this ->createMock (Model::class);
@@ -301,7 +301,7 @@ public function getResponse(): HttpResponseInterface
301
301
$ agent ->call ($ messages );
302
302
}
303
303
304
- public function testCallHandlesClientExceptionWithEmptyMessage (): void
304
+ public function testCallHandlesClientExceptionWithEmptyMessage ()
305
305
{
306
306
$ platform = $ this ->createMock (PlatformInterface::class);
307
307
$ model = $ this ->createMock (Model::class);
@@ -339,7 +339,7 @@ public function getResponse(): HttpResponseInterface
339
339
$ agent ->call ($ messages );
340
340
}
341
341
342
- public function testCallHandlesHttpException (): void
342
+ public function testCallHandlesHttpException ()
343
343
{
344
344
$ platform = $ this ->createMock (PlatformInterface::class);
345
345
$ model = $ this ->createMock (Model::class);
@@ -358,7 +358,7 @@ public function testCallHandlesHttpException(): void
358
358
$ agent ->call ($ messages );
359
359
}
360
360
361
- public function testCallPassesOptionsToInvoke (): void
361
+ public function testCallPassesOptionsToInvoke ()
362
362
{
363
363
$ platform = $ this ->createMock (PlatformInterface::class);
364
364
$ model = $ this ->createMock (Model::class);
@@ -380,7 +380,7 @@ public function testCallPassesOptionsToInvoke(): void
380
380
$ this ->assertSame ($ result , $ actualResult );
381
381
}
382
382
383
- public function testConstructorAcceptsTraversableProcessors (): void
383
+ public function testConstructorAcceptsTraversableProcessors ()
384
384
{
385
385
$ platform = $ this ->createMock (PlatformInterface::class);
386
386
$ model = $ this ->createMock (Model::class);
0 commit comments