3 namespace Drupal\system\PhpStorage;
6 * Mock PHP storage class used for testing.
11 * The storage configuration.
15 protected $configuration;
18 * Constructs a MockPhpStorage object.
20 * @param array $configuration
22 public function __construct(array $configuration) {
23 $this->configuration = $configuration;
27 * Gets the configuration data.
29 public function getConfiguration() {
30 return $this->configuration;
34 * Gets a single configuration key.
36 public function getConfigurationValue($key) {
37 return isset($this->configuration[$key]) ? $this->configuration[$key] : NULL;