���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/wiki.craftaro.com/tests/phpunit/includes/exception/BadTitleErrorTest.php
���ѧ٧ѧ�
<?php /** * @covers BadTitleError * @author Addshore */ class BadTitleErrorTest extends MediaWikiIntegrationTestCase { public function testExceptionSetsStatusCode() { $mockOut = $this->createMock( OutputPage::class ); $mockOut->expects( $this->once() ) ->method( 'setStatusCode' ) ->with( 404 ); $this->setMwGlobals( 'wgOut', $mockOut ); try { throw new BadTitleError(); } catch ( BadTitleError $e ) { ob_start(); $e->report(); $text = ob_get_clean(); $this->assertStringContainsString( $e->getText(), $text ); } } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.11 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�