���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/wiki.craftaro.com/tests/phpunit/unit/includes/Settings/Source/PhpSettingsSourceTest.php
���ѧ٧ѧ�
<?php namespace MediaWiki\Tests\Unit\Settings\Source; use MediaWiki\Settings\SettingsBuilderException; use MediaWiki\Settings\Source\PhpSettingsSource; use PHPUnit\Framework\TestCase; /** * @covers \MediaWiki\Settings\Source\PhpSettingsSource */ class PhpSettingsSourceTest extends TestCase { public function testLoad() { $source = new PhpSettingsSource( __DIR__ . '/fixtures/strategies.php' ); $this->assertSame( [], $source->load() ); } public function testLoadInvalidPhpSource() { $this->expectException( SettingsBuilderException::class ); $source = new PhpSettingsSource( __DIR__ . '/fixtures/bad-strategies.php' ); $source->load(); } public function testLoadFileNotArray() { $this->expectException( SettingsBuilderException::class ); // Let this just be an empty string. $source = new PhpSettingsSource( __DIR__ . '/fixtures/strategies-bad-structure.php' ); $source->load(); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.2 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�