22 file_put_contents(
$filename, json_encode($expected));
28 $this->assertEquals($expected,
$config);
39 file_put_contents(
$filename, json_encode($expected));
45 $this->assertEquals($expected,
$config);
56 file_put_contents(
$filename, json_encode($expected));
62 $this->assertEquals($expected,
$config);
67 $cr =
new class() extends Setup\CLI\ConfigReader {
68 public function _applyOverwrites($j, $o)
70 return $this->applyOverwrites($j, $o);
97 $result = $cr->_applyOverwrites($array, $overwrites);
98 $this->assertEquals($expected,
$result);
Read a json-formatted config from a file and overwrite some fields.