@@ -421,7 +421,7 @@ public function testEmitsErrorIfConnectionIsClosedBeforeHandshake()
421
421
$ error = Block \await ($ errorEvent , $ loop , self ::TIMEOUT );
422
422
423
423
// Connection from tcp://127.0.0.1:39528 failed during TLS handshake: Connection lost during TLS handshak
424
- $ this ->assertTrue ( $ error instanceof \RuntimeException );
424
+ $ this ->assertInstanceOf ( ' RuntimeException ' , $ error );
425
425
$ this ->assertStringStartsWith ('Connection from tcp:// ' , $ error ->getMessage ());
426
426
$ this ->assertStringEndsWith ('failed during TLS handshake: Connection lost during TLS handshake ' , $ error ->getMessage ());
427
427
$ this ->assertEquals (defined ('SOCKET_ECONNRESET ' ) ? SOCKET_ECONNRESET : 0 , $ error ->getCode ());
@@ -449,7 +449,7 @@ public function testEmitsErrorIfConnectionIsClosedWithIncompleteHandshake()
449
449
$ error = Block \await ($ errorEvent , $ loop , self ::TIMEOUT );
450
450
451
451
// Connection from tcp://127.0.0.1:39528 failed during TLS handshake: Connection lost during TLS handshak
452
- $ this ->assertTrue ( $ error instanceof \RuntimeException );
452
+ $ this ->assertInstanceOf ( ' RuntimeException ' , $ error );
453
453
$ this ->assertStringStartsWith ('Connection from tcp:// ' , $ error ->getMessage ());
454
454
$ this ->assertStringEndsWith ('failed during TLS handshake: Connection lost during TLS handshake ' , $ error ->getMessage ());
455
455
$ this ->assertEquals (defined ('SOCKET_ECONNRESET ' ) ? SOCKET_ECONNRESET : 0 , $ error ->getCode ());
@@ -494,7 +494,7 @@ public function testEmitsErrorIfConnectionIsHttpInsteadOfSecureHandshake()
494
494
495
495
$ error = Block \await ($ errorEvent , $ loop , self ::TIMEOUT );
496
496
497
- $ this ->assertTrue ( $ error instanceof \RuntimeException );
497
+ $ this ->assertInstanceOf ( ' RuntimeException ' , $ error );
498
498
499
499
// OpenSSL error messages are version/platform specific
500
500
// Unable to complete TLS handshake: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:SSL3_GET_RECORD:http request
@@ -523,7 +523,7 @@ public function testEmitsErrorIfConnectionIsUnknownProtocolInsteadOfSecureHandsh
523
523
524
524
$ error = Block \await ($ errorEvent , $ loop , self ::TIMEOUT );
525
525
526
- $ this ->assertTrue ( $ error instanceof \RuntimeException );
526
+ $ this ->assertInstanceOf ( ' RuntimeException ' , $ error );
527
527
528
528
// OpenSSL error messages are version/platform specific
529
529
// Unable to complete TLS handshake: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:SSL3_GET_RECORD:unknown protocol
0 commit comments