���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/wiki.craftaro.com/tests/phpunit/includes/filerepo/FileRepoTest.php
���ѧ٧ѧ�
<?php use MediaWiki\MainConfigNames; class FileRepoTest extends MediaWikiIntegrationTestCase { /** * @covers FileRepo::__construct */ public function testFileRepoConstructionOptionCanNotBeNull() { $this->expectException( MWException::class ); new FileRepo(); } /** * @covers FileRepo::__construct */ public function testFileRepoConstructionOptionCanNotBeAnEmptyArray() { $this->expectException( MWException::class ); new FileRepo( [] ); } /** * @covers FileRepo::__construct */ public function testFileRepoConstructionOptionNeedNameKey() { $this->expectException( MWException::class ); new FileRepo( [ 'backend' => 'foobar' ] ); } /** * @covers FileRepo::__construct */ public function testFileRepoConstructionOptionNeedBackendKey() { $this->expectException( MWException::class ); new FileRepo( [ 'name' => 'foobar' ] ); } /** * @covers FileRepo::__construct */ public function testFileRepoConstructionWithRequiredOptions() { $f = new FileRepo( [ 'name' => 'FileRepoTestRepository', 'backend' => new FSFileBackend( [ 'name' => 'local-testing', 'wikiId' => 'test_wiki', 'containerPaths' => [] ] ) ] ); $this->assertInstanceOf( FileRepo::class, $f ); } /** * @covers FileRepo::__construct */ public function testFileRepoConstructionWithInvalidCasing() { $this->expectException( InvalidArgumentException::class ); $this->expectExceptionMessage( 'File repos with initial capital false' ); $this->overrideConfigValue( MainConfigNames::CapitalLinks, true ); new FileRepo( [ 'name' => 'foobar', 'backend' => 'local-backend', 'initialCapital' => false, ] ); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�