Files
Phraseanet/tests/Alchemy/Tests/Phrasea/MockArrayConf.php
Aina Sitraka bc01476ea2 PHRAS-3772 bin/setup system:config add option (#4164)
* add option no compile -s for bin/setup system:config

* check db connection on bin/console

* add -s on  migration script
2022-11-01 16:20:52 +01:00

76 lines
1.3 KiB
PHP

<?php
namespace Alchemy\Tests\Phrasea;
use Alchemy\Phrasea\Core\Configuration\ConfigurationInterface;
class MockArrayConf implements ConfigurationInterface
{
private $conf;
public function __construct(array $conf)
{
$this->conf = $conf;
}
public function getConfig()
{
return $this->conf;
}
public function setConfig(array $config)
{
$this->conf = $config;
}
public function offsetGet($key)
{
return $this->conf[$key];
}
public function offsetSet($key, $value)
{
$this->conf[$key] = $value;
}
public function offsetExists($key)
{
return isset($this->conf[$key]);
}
public function offsetUnset($key)
{
unset($this->conf[$key]);
}
public function setDefault($name)
{
throw new \Exception('not implemented');
}
public function initialize()
{
throw new \Exception('not implemented');
}
public function delete()
{
throw new \Exception('not implemented');
}
public function isSetup()
{
throw new \Exception('not implemented');
}
public function compileAndWrite()
{
throw new \Exception('not implemented');
}
public function setNoCompile(bool $noCompile)
{
throw new \Exception('not implemented');
}
}