Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/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.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка