@@ -59,9 +59,7 @@ public function testAnthropicBetaHeaderIsSetWithSingleBetaFeature(): void
59
59
$ this ->modelClient = new ModelClient ($ this ->httpClient , 'test-api-key ' );
60
60
61
61
$ options = ['beta_features ' => ['feature-1 ' ]];
62
- $ result = $ this ->modelClient ->request ($ this ->model , ['message ' => 'test ' ], $ options );
63
-
64
- $ this ->assertNotNull ($ result );
62
+ $ this ->modelClient ->request ($ this ->model , ['message ' => 'test ' ], $ options );
65
63
}
66
64
67
65
public function testAnthropicBetaHeaderIsSetWithMultipleBetaFeatures (): void
@@ -78,9 +76,7 @@ public function testAnthropicBetaHeaderIsSetWithMultipleBetaFeatures(): void
78
76
$ this ->modelClient = new ModelClient ($ this ->httpClient , 'test-api-key ' , '2023-06-01 ' );
79
77
80
78
$ options = ['beta_features ' => ['feature-1 ' , 'feature-2 ' , 'feature-3 ' ]];
81
- $ result = $ this ->modelClient ->request ($ this ->model , ['message ' => 'test ' ], $ options );
82
-
83
- $ this ->assertNotNull ($ result );
79
+ $ this ->modelClient ->request ($ this ->model , ['message ' => 'test ' ], $ options );
84
80
}
85
81
86
82
public function testAnthropicBetaHeaderIsNotSetWhenBetaFeaturesIsEmpty (): void
@@ -96,9 +92,7 @@ public function testAnthropicBetaHeaderIsNotSetWhenBetaFeaturesIsEmpty(): void
96
92
$ this ->modelClient = new ModelClient ($ this ->httpClient , 'test-api-key ' , '2023-06-01 ' );
97
93
98
94
$ options = ['beta_features ' => []];
99
- $ result = $ this ->modelClient ->request ($ this ->model , ['message ' => 'test ' ], $ options );
100
-
101
- $ this ->assertNotNull ($ result );
95
+ $ this ->modelClient ->request ($ this ->model , ['message ' => 'test ' ], $ options );
102
96
}
103
97
104
98
public function testAnthropicBetaHeaderIsNotSetWhenBetaFeaturesIsNotProvided (): void
@@ -114,8 +108,6 @@ public function testAnthropicBetaHeaderIsNotSetWhenBetaFeaturesIsNotProvided():
114
108
$ this ->modelClient = new ModelClient ($ this ->httpClient , 'test-api-key ' , '2023-06-01 ' );
115
109
116
110
$ options = ['some_other_option ' => 'value ' ];
117
- $ result = $ this ->modelClient ->request ($ this ->model , ['message ' => 'test ' ], $ options );
118
-
119
- $ this ->assertNotNull ($ result );
111
+ $ this ->modelClient ->request ($ this ->model , ['message ' => 'test ' ], $ options );
120
112
}
121
113
}
0 commit comments