diff --git tests/phpunit/includes/trac.php tests/phpunit/includes/trac.php
index 70b56a0..25be036 100644
|
|
class TracTickets { |
14 | 14 | * @return bool|null true if the ticket is resolved, false if not resolved, null on error |
15 | 15 | */ |
16 | 16 | public static function isTracTicketClosed( $trac_url, $ticket_id ) { |
| 17 | if ( ! extension_loaded('openssl') ) |
| 18 | $trac_url = preg_replace("/^https:/", "http:", $trac_url); |
| 19 | |
17 | 20 | if ( ! isset( self::$trac_ticket_cache[ $trac_url ] ) ) { |
18 | 21 | // In case you're running the tests offline, keep track of open tickets. |
19 | 22 | $file = DIR_TESTDATA . '/.trac-ticket-cache.' . str_replace( array( 'http://', 'https://', '/' ), array( '', '', '-' ), rtrim( $trac_url, '/' ) ); |