File size: 506 Bytes
bf8c0ce | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | <?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;
}
}
|