/** * Get the only Open_Metrics instance. * * @since 1.0.0 * * @return Open_Metrics The single instance of the Open_Metrics class. */ public static function instance() { if (!isset(self::$_instance) && !self::$_instance instanceof Open_Metrics) { self::$_instance = new Open_Metrics(); } return self::$_instance; }
/** * Set up the instance of the main class. * * @since 1.0.0 */ public function setUp() { parent::setUp(); $this->object = Open_Metrics::instance(); }