Spaces:
Paused

matomo / tests /PHPUnit /Framework /Mock /FakeConfig.php
Leon4gr45's picture
Upload folder using huggingface_hub (part 55)
bf8c0ce verified
Raw History Blame Contribute Delete
506 Bytes
<?php
namespace Piwik\Tests\Framework\Mock;
use Piwik\Config;
class FakeConfig extends Config
{
private $configValues = array();
public function __construct($configValues = array())
{
$this->configValues = $configValues;
}
public function &__get($name)
{
if (isset($this->configValues[$name])) {
return $this->configValues[$name];
}
}
public function __set($name, $value)
{
$this->configValues[$name] = $value;
}
}