19declare(strict_types=1);
24use PHPUnit\Framework\TestCase;
36 file_put_contents(
$filename, json_encode($expected));
39 $config = $obj->readConfigFile(
$filename);
41 $this->assertEquals($expected, $config);
52 file_put_contents(
$filename, json_encode($expected));
56 $config = $obj->readConfigFile(basename(
$filename));
58 $this->assertEquals($expected, $config);
69 file_put_contents(
$filename, json_encode($expected));
73 $config = $obj->readConfigFile(
$filename);
75 $this->assertEquals($expected, $config);
Read a json-formatted config from a file and overwrite some fields.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...