���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/wiki.craftaro.com/tests/phpunit/includes/exception/ThrottledErrorTest.php
���ѧ٧ѧ�
<?php /** * @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->getText(), $text ); } } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.09 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�