Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/CookieWarning/tests/phpunit/includes/ServiceWiringTest.php
Ðазад
<?php namespace CookieWarning\Tests; use CookieWarning\HttpGeoLocation; use CookieWarning\NoopGeoLocation; use MediaWikiIntegrationTestCase; class ServiceWiringTest extends MediaWikiIntegrationTestCase { /** * @covers \CookieWarning\NoopGeoLocation */ public function testGeoLocationWithoutServiceURL() { $this->overrideConfigValues( [ 'CookieWarningGeoIPServiceURL' => null ] ); $geoLocation = $this->getServiceContainer()->getService( 'GeoLocation' ); $this->assertInstanceOf( NoopGeoLocation::class, $geoLocation ); } /** * @covers \CookieWarning\HttpGeoLocation */ public function testGeoLocationWithServiceURL() { $this->overrideConfigValues( [ 'CookieWarningGeoIPServiceURL' => 'http://localhost/' ] ); $geoLocation = $this->getServiceContainer()->getService( 'GeoLocation' ); $this->assertInstanceOf( HttpGeoLocation::class, $geoLocation ); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка