@@ -27,7 +27,7 @@ class ExceptionMapTest extends TestCase
2727 /**
2828 * @test
2929 */
30- public function it_should_handle_InvalidAvroSchema_code ()
30+ public function it_should_handle_InvalidAvroSchema_code (): void
3131 {
3232 $ this ->assertSchemaRegistryException (
3333 InvalidAvroSchemaException::class,
@@ -50,7 +50,7 @@ public function it_should_handle_InvalidAvroSchema_code()
5050 /**
5151 * @test
5252 */
53- public function it_should_handle_IncompatibleAvroSchema_code ()
53+ public function it_should_handle_IncompatibleAvroSchema_code (): void
5454 {
5555 $ this ->assertSchemaRegistryException (
5656 IncompatibleAvroSchemaException::class,
@@ -73,7 +73,7 @@ public function it_should_handle_IncompatibleAvroSchema_code()
7373 /**
7474 * @test
7575 */
76- public function it_should_handle_BackendDataStore_code ()
76+ public function it_should_handle_BackendDataStore_code (): void
7777 {
7878 $ this ->assertSchemaRegistryException (
7979 BackendDataStoreException::class,
@@ -96,7 +96,7 @@ public function it_should_handle_BackendDataStore_code()
9696 /**
9797 * @test
9898 */
99- public function it_should_handle_InvalidCompatibilityLevel_code ()
99+ public function it_should_handle_InvalidCompatibilityLevel_code (): void
100100 {
101101 $ this ->assertSchemaRegistryException (
102102 InvalidCompatibilityLevelException::class,
@@ -119,7 +119,7 @@ public function it_should_handle_InvalidCompatibilityLevel_code()
119119 /**
120120 * @test
121121 */
122- public function it_should_handle_InvalidVersion_code ()
122+ public function it_should_handle_InvalidVersion_code (): void
123123 {
124124 $ this ->assertSchemaRegistryException (
125125 InvalidVersionException::class,
@@ -142,7 +142,7 @@ public function it_should_handle_InvalidVersion_code()
142142 /**
143143 * @test
144144 */
145- public function it_should_handle_MasterProxy_code ()
145+ public function it_should_handle_MasterProxy_code (): void
146146 {
147147 $ this ->assertSchemaRegistryException (
148148 MasterProxyException::class,
@@ -165,7 +165,7 @@ public function it_should_handle_MasterProxy_code()
165165 /**
166166 * @test
167167 */
168- public function it_should_handle_OperationTimedOut_code ()
168+ public function it_should_handle_OperationTimedOut_code (): void
169169 {
170170 $ this ->assertSchemaRegistryException (
171171 OperationTimedOutException::class,
@@ -188,7 +188,7 @@ public function it_should_handle_OperationTimedOut_code()
188188 /**
189189 * @test
190190 */
191- public function it_should_handle_SchemaNotFound_code ()
191+ public function it_should_handle_SchemaNotFound_code (): void
192192 {
193193 $ this ->assertSchemaRegistryException (
194194 SchemaNotFoundException::class,
@@ -211,7 +211,7 @@ public function it_should_handle_SchemaNotFound_code()
211211 /**
212212 * @test
213213 */
214- public function it_should_handle_SubjectNotFound_code ()
214+ public function it_should_handle_SubjectNotFound_code (): void
215215 {
216216 $ this ->assertSchemaRegistryException (
217217 SubjectNotFoundException::class,
@@ -234,7 +234,7 @@ public function it_should_handle_SubjectNotFound_code()
234234 /**
235235 * @test
236236 */
237- public function it_should_handle_VersionNotFound_code ()
237+ public function it_should_handle_VersionNotFound_code (): void
238238 {
239239 $ this ->assertSchemaRegistryException (
240240 VersionNotFoundException::class,
@@ -260,7 +260,7 @@ public function it_should_handle_VersionNotFound_code()
260260 * @expectedException \RuntimeException
261261 * @expectedExceptionMessage RequestException has no response to inspect
262262 */
263- public function it_should_not_process_exceptions_with_missing_response ()
263+ public function it_should_not_process_exceptions_with_missing_response (): void
264264 {
265265 (ExceptionMap::instance ())(
266266 new RequestException (
@@ -275,7 +275,7 @@ public function it_should_not_process_exceptions_with_missing_response()
275275 *
276276 * @expectedException \LogicException
277277 */
278- public function it_will_check_for_invalid_schema_registry_exceptions_not_defining_a_code ()
278+ public function it_will_check_for_invalid_schema_registry_exceptions_not_defining_a_code (): void
279279 {
280280 InvalidNewSchemaRegistryException::errorCode ();
281281 }
@@ -286,7 +286,7 @@ public function it_will_check_for_invalid_schema_registry_exceptions_not_definin
286286 * @expectedException \RuntimeException
287287 * @expectedExceptionMessage Invalid message body received - cannot find "error_code" field in response body
288288 */
289- public function it_should_not_process_exceptions_with_missing_error_codes ()
289+ public function it_should_not_process_exceptions_with_missing_error_codes (): void
290290 {
291291 (ExceptionMap::instance ())(
292292 new RequestException (
@@ -307,7 +307,7 @@ public function it_should_not_process_exceptions_with_missing_error_codes()
307307 * @expectedException \RuntimeException
308308 * @expectedExceptionMessage Unknown error code "99999"
309309 */
310- public function it_should_not_process_unknown_error_codes ()
310+ public function it_should_not_process_unknown_error_codes (): void
311311 {
312312 (ExceptionMap::instance ())(
313313 new RequestException (
@@ -327,7 +327,8 @@ private function assertSchemaRegistryException(
327327 string $ expectedMessage ,
328328 int $ errorCode ,
329329 SchemaRegistryException $ exception
330- ) {
330+ ): void
331+ {
331332 $ this ->assertInstanceOf ($ exceptionClass , $ exception );
332333 $ this ->assertEquals ($ errorCode , $ exception ->getCode ());
333334 $ this ->assertEquals ($ expectedMessage , $ exception ->getMessage ());
0 commit comments