Make WordPress Core


Ignore:
Timestamp:
07/18/2018 09:51:53 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Filesystem API: Skip https:// test for wp_is_stream() if openssl extension is not loaded.

See #44533.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions.php

    r43501 r43503  
    14621462         */
    14631463        public function test_wp_is_stream( $path, $expected ) {
     1464                if ( ! extension_loaded( 'openssl' ) && false !== strpos( $path, 'https://' ) ) {
     1465                        $this->markTestSkipped( 'The openssl PHP extension is not loaded.' );
     1466                }
     1467
    14641468                $this->assertSame( $expected, wp_is_stream( $path ) );
    14651469        }
    … …  
    14781482                return array(
    14791483                        // Legitimate stream examples.
     1484                        array( 'http://example.com', true ),
    14801485                        array( 'https://example.com', true ),
    14811486                        array( 'ftp://example.com', true ),
Note: See TracChangeset for help on using the changeset viewer.