From 7c55817dbc5a78393e8e0bbdf377f03080e8809c Mon Sep 17 00:00:00 2001 From: Koji Tanaka Date: Sat, 7 Jan 2023 20:58:02 +0900 Subject: [PATCH] test: Change TLS version used in testEnableCryptoTlsV11(). Co-authored-by: Kenshin Okinaka --- lib/Cake/Test/Case/Network/CakeSocketTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Test/Case/Network/CakeSocketTest.php b/lib/Cake/Test/Case/Network/CakeSocketTest.php index 9df37c396..41651df9c 100644 --- a/lib/Cake/Test/Case/Network/CakeSocketTest.php +++ b/lib/Cake/Test/Case/Network/CakeSocketTest.php @@ -330,12 +330,12 @@ class CakeSocketTest extends CakeTestCase { * * @return void */ - public function testEnableCryptoTlsV11() { - $this->skipIf(!defined('STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT'), 'TLS1.1 is not supported on this system'); + public function testEnableCryptoTlsV12() { + $this->skipIf(!defined('STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT'), 'TLS1.2 is not supported on this system'); // testing on tls server $this->_connectSocketToSslTls(); - $this->assertTrue($this->Socket->enableCrypto('tlsv1_1', 'client')); + $this->assertTrue($this->Socket->enableCrypto('tlsv1_2', 'client')); $this->Socket->disconnect(); }