$options[UrlUtils::SERVER] ?? null, MainConfigNames::CanonicalServer => $options[UrlUtils::CANONICAL_SERVER] ?? null, MainConfigNames::InternalServer => $options[UrlUtils::INTERNAL_SERVER] ?? null, MainConfigNames::HttpsPort => $options[UrlUtils::HTTPS_PORT] ?? 443, ]; $currentProto = $options[UrlUtils::FALLBACK_PROTOCOL]; $this->overrideConfigValues( $conf ); $this->setRequest( new FauxRequest( [], false, null, $currentProto ) ); $this->assertEquals( $expected, wfExpandUrl( $input, $defaultProto ) ); } }