19declare(strict_types=1);
23use PHPUnit\Framework\TestCase;
33 protected function setUp(): void
35 $this->file = tempnam(sys_get_temp_dir(),
'ini_typed_');
40 .
"absolute_path = \"/var/www/ilias\"\n"
43 .
"type = \"innodb\"\n"
49 if (is_file($this->file)) {
58 self::assertSame(
'/var/www/ilias', $ini->getAbsolutePath());
59 self::assertFalse($ini->isAutoHttpsDetectEnabled());
60 self::assertSame(
'', $ini->getAutoHttpsDetectHeaderName());
61 self::assertSame(
'', $ini->getAutoHttpsDetectHeaderValue());
68 self::assertSame(
'innodb', $ini->getDatabaseType());
69 self::assertSame(
'', $ini->getClientName());
70 self::assertSame(0, $ini->getRootFolderId());
Ini files of older installations lack keys added later; the typed accessors read them as empty,...
testIliasIniWithoutHttpsSectionReadsAsDisabled()
testClientIniWithoutKeyReadsAsEmpty()