Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 41... Línea 41...
41
     * @dataProvider validate_php_curl_tls_testcases()
41
     * @dataProvider validate_php_curl_tls_testcases()
42
     * @param array $curlinfo server curl_version array
42
     * @param array $curlinfo server curl_version array
43
     * @param int   $zts      0 or 1 as defined by PHP_ZTS
43
     * @param int   $zts      0 or 1 as defined by PHP_ZTS
44
     * @param bool  $expected expected result
44
     * @param bool  $expected expected result
45
     */
45
     */
46
    public function test_validate_php_curl_tls($curlinfo, $zts, $expected) {
46
    public function test_validate_php_curl_tls($curlinfo, $zts, $expected): void {
47
        $this->assertSame($expected, \core\upgrade\util::validate_php_curl_tls($curlinfo, $zts));
47
        $this->assertSame($expected, \core\upgrade\util::validate_php_curl_tls($curlinfo, $zts));
48
    }
48
    }
Línea 49... Línea 49...
49
 
49
 
50
    /**
50
    /**
Línea 103... Línea 103...
103
     * @dataProvider can_use_tls12_testcases
103
     * @dataProvider can_use_tls12_testcases
104
     * @param string $sslversion the ssl_version string.
104
     * @param string $sslversion the ssl_version string.
105
     * @param string|null $uname uname string (or null if not relevant)
105
     * @param string|null $uname uname string (or null if not relevant)
106
     * @param bool $expected expected result
106
     * @param bool $expected expected result
107
     */
107
     */
108
    public function test_can_use_tls12($sslversion, $uname, $expected) {
108
    public function test_can_use_tls12($sslversion, $uname, $expected): void {
109
        // Populate curlinfo with whats installed on this php install.
109
        // Populate curlinfo with whats installed on this php install.
110
        $curlinfo = curl_version();
110
        $curlinfo = curl_version();
Línea 111... Línea 111...
111
 
111
 
112
        // Set the curl values we are testing to the passed data.
112
        // Set the curl values we are testing to the passed data.