diff options
author | diosmosis <benaka@piwik.pro> | 2014-10-06 12:34:26 +0400 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-10-06 12:34:26 +0400 |
commit | ab8c11080e6af8d8b6f78fdba694a45247ef7628 (patch) | |
tree | afb01b2c3c2a0cdf24200526c6044926e82960bd /core/Option.php | |
parent | 5349e0df86c1eaba4870e90588dd393d7c230011 (diff) |
Add setSingletonInstance method to Option for testing.
Diffstat (limited to 'core/Option.php')
-rw-r--r-- | core/Option.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/Option.php b/core/Option.php index c4410520ea..e8519aeacc 100644 --- a/core/Option.php +++ b/core/Option.php @@ -143,6 +143,16 @@ class Option } /** + * Sets the singleton instance. For testing purposes. + * + * @param mixed + */ + public static function setSingletonInstance($instance) + { + self::$instance = $instance; + } + + /** * Private Constructor */ private function __construct() |