Skip to content

Commit ab69a78

Browse files
committed
Skip platform specific TLS error tests
1 parent 55e8f34 commit ab69a78

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

tests/FunctionalSecureServerTest.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,12 @@ public function testEmitsErrorIfConnectionIsHttpInsteadOfSecureHandshake()
489489
$error = Block\await($errorEvent, $loop, self::TIMEOUT);
490490

491491
$this->assertTrue($error instanceof \RuntimeException);
492-
$this->assertStringEndsWith(':http request', $error->getMessage());
492+
493+
// OpenSSL error messages are version/platform specific
494+
// Unable to complete TLS handshake: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:SSL3_GET_RECORD:http request
495+
// Unable to complete TLS handshake: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number
496+
// Unable to complete TLS handshake: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:func(143):reason(267)
497+
// Unable to complete TLS handshake: Failed setting RSA key
493498
}
494499

495500
public function testEmitsErrorIfConnectionIsUnknownProtocolInsteadOfSecureHandshake()
@@ -513,7 +518,12 @@ public function testEmitsErrorIfConnectionIsUnknownProtocolInsteadOfSecureHandsh
513518
$error = Block\await($errorEvent, $loop, self::TIMEOUT);
514519

515520
$this->assertTrue($error instanceof \RuntimeException);
516-
$this->assertStringEndsWith(':unknown protocol', $error->getMessage());
521+
522+
// OpenSSL error messages are version/platform specific
523+
// Unable to complete TLS handshake: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:SSL3_GET_RECORD:unknown protocol
524+
// Unable to complete TLS handshake: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number
525+
// Unable to complete TLS handshake: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:func(143):reason(267)
526+
// Unable to complete TLS handshake: Failed setting RSA key
517527
}
518528

519529
private function createPromiseForServerError(ServerInterface $server)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy