mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
test: Change TLS version used in testEnableCryptoTlsV11().
Co-authored-by: Kenshin Okinaka <okinakak@yahoo.co.jp>
This commit is contained in:
parent
d69a09b972
commit
7c55817dbc
1 changed files with 3 additions and 3 deletions
|
@ -330,12 +330,12 @@ class CakeSocketTest extends CakeTestCase {
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testEnableCryptoTlsV11() {
|
public function testEnableCryptoTlsV12() {
|
||||||
$this->skipIf(!defined('STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT'), 'TLS1.1 is not supported on this system');
|
$this->skipIf(!defined('STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT'), 'TLS1.2 is not supported on this system');
|
||||||
|
|
||||||
// testing on tls server
|
// testing on tls server
|
||||||
$this->_connectSocketToSslTls();
|
$this->_connectSocketToSslTls();
|
||||||
$this->assertTrue($this->Socket->enableCrypto('tlsv1_1', 'client'));
|
$this->assertTrue($this->Socket->enableCrypto('tlsv1_2', 'client'));
|
||||||
$this->Socket->disconnect();
|
$this->Socket->disconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue