mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Session management is now part of Phraseanet configuration
This commit is contained in:
70
tests/Alchemy/Tests/Phrasea/MockArrayConf.php
Normal file
70
tests/Alchemy/Tests/Phrasea/MockArrayConf.php
Normal file
@@ -0,0 +1,70 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user