/** * Set the dataroot. It's useful when mocking the dataroot when unit testing this class itself. * * @param string $dataroot the dataroot of the test framework. * @static */ public static function set_dataroot($dataroot) { self::$dataroot = $dataroot; }