test: Change TLS version used in testEnableCryptoTlsV11().

Co-authored-by: Kenshin Okinaka <okinakak@yahoo.co.jp>
This commit is contained in:
Koji Tanaka 2023-01-07 20:58:02 +09:00 committed by Kamil Wylegala
parent d69a09b972
commit 7c55817dbc

View file

@ -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();
} }