Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/tests/phpunit/maintenance/GetReplicaServerTest.php
Ðазад
<?php namespace MediaWiki\Tests\Maintenance; use GetReplicaServer; /** * @covers GetReplicaServer * @group Database * @author Dreamy Jazz */ class GetReplicaServerTest extends MaintenanceBaseTestCase { protected function getMaintenanceClass() { return GetReplicaServer::class; } public function testExecuteForUnknownCluster() { $this->maintenance->setOption( 'cluster', 'invalid-cluster' ); $this->expectCallToFatalError(); $this->expectOutputRegex( "/Error: Unknown cluster 'invalid-cluster'/" ); $this->maintenance->execute(); } public function testExecute() { $this->maintenance->execute(); $expectedServerName = $this->getDb()->getServerName(); $this->expectOutputString( "$expectedServerName\n" ); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка