Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/tests/phpunit/includes/exception/ThrottledErrorTest.php
Ðазад
<?php use MediaWiki\Output\OutputPage; /** * @covers \ThrottledError * @author Addshore */ class ThrottledErrorTest extends MediaWikiIntegrationTestCase { public function testExceptionSetsStatusCode() { $mockOut = $this->createMock( OutputPage::class ); $mockOut->expects( $this->once() ) ->method( 'setStatusCode' ) ->with( 429 ); $this->setMwGlobals( 'wgOut', $mockOut ); try { throw new ThrottledError(); } catch ( ThrottledError $e ) { ob_start(); $e->report(); $text = ob_get_clean(); $this->assertStringContainsString( $e->getMessage(), $text ); } } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка