���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/wiki.craftaro.com/tests/phpunit/includes/exception/ErrorPageErrorTest.php
���ѧ٧ѧ�
<?php /** * @covers ErrorPageError * @author Addshore */ class ErrorPageErrorTest extends MediaWikiIntegrationTestCase { public function testConstruction() { $mockMessage = $this->getMockMessage(); $title = 'Foo'; $params = [ 'Baz' ]; $e = new ErrorPageError( $title, $mockMessage, $params ); $this->assertEquals( $title, $e->title ); $this->assertEquals( $mockMessage, $e->msg ); $this->assertEquals( $params, $e->params ); } public function testReport() { $mockMessage = $this->getMockMessage(); $title = 'Foo'; $params = [ 'Baz' ]; $mock = $this->createMock( OutputPage::class ); $mock->expects( $this->once() ) ->method( 'showErrorPage' ) ->with( $title, $mockMessage, $params ); $mock->expects( $this->once() ) ->method( 'output' ); $this->setMwGlobals( [ 'wgOut' => $mock, 'wgCommandLineMode' => false, ] ); $e = new ErrorPageError( $title, $mockMessage, $params ); $e->report(); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.31 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�