@@ -664,11 +664,11 @@ public function testEmitsErrorIfConnectionIsClosedBeforeHandshake()
664664
665665 $ error = Block \await ($ errorEvent , $ loop , self ::TIMEOUT );
666666
667- // Connection from tcp://127.0.0.1:39528 failed during TLS handshake: Connection lost during TLS handshak
667+ // Connection from tcp://127.0.0.1:39528 failed during TLS handshake: Connection lost during TLS handshake
668668 $ this ->assertInstanceOf ('RuntimeException ' , $ error );
669669 $ this ->assertStringStartsWith ('Connection from tcp:// ' , $ error ->getMessage ());
670670 $ this ->assertStringEndsWith ('failed during TLS handshake: Connection lost during TLS handshake ' , $ error ->getMessage ());
671- $ this ->assertEquals (defined ('SOCKET_ECONNRESET ' ) ? SOCKET_ECONNRESET : 0 , $ error ->getCode ());
671+ $ this ->assertEquals (defined ('SOCKET_ECONNRESET ' ) ? SOCKET_ECONNRESET : 104 , $ error ->getCode ());
672672 $ this ->assertNull ($ error ->getPrevious ());
673673 }
674674
@@ -692,11 +692,11 @@ public function testEmitsErrorIfConnectionIsClosedWithIncompleteHandshake()
692692
693693 $ error = Block \await ($ errorEvent , $ loop , self ::TIMEOUT );
694694
695- // Connection from tcp://127.0.0.1:39528 failed during TLS handshake: Connection lost during TLS handshak
695+ // Connection from tcp://127.0.0.1:39528 failed during TLS handshake: Connection lost during TLS handshake
696696 $ this ->assertInstanceOf ('RuntimeException ' , $ error );
697697 $ this ->assertStringStartsWith ('Connection from tcp:// ' , $ error ->getMessage ());
698698 $ this ->assertStringEndsWith ('failed during TLS handshake: Connection lost during TLS handshake ' , $ error ->getMessage ());
699- $ this ->assertEquals (defined ('SOCKET_ECONNRESET ' ) ? SOCKET_ECONNRESET : 0 , $ error ->getCode ());
699+ $ this ->assertEquals (defined ('SOCKET_ECONNRESET ' ) ? SOCKET_ECONNRESET : 104 , $ error ->getCode ());
700700 $ this ->assertNull ($ error ->getPrevious ());
701701 }
702702
0 commit comments