Download tests/PHPUnit/Framework/Mock/FakeConfig.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 506 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/tests/PHPUnit/Framework/Mock/FakeConfig.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/tests/PHPUnit/Framework/Mock/FakeConfig.php
-
curl -L -o FakeConfig.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/tests/PHPUnit/Framework/Mock/FakeConfig.php
506 Bytes
| 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; | |
| } | |
| } | |