From f621cf9ceeabe3b6720a33a276b2ff6bd221c9dd Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 15 Jul 2020 16:12:37 +0400 Subject: Utility of get key Signed-off-by: Valentin Popov --- tests/Utilities/GetKeyUtility.php | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/Utilities/GetKeyUtility.php diff --git a/tests/Utilities/GetKeyUtility.php b/tests/Utilities/GetKeyUtility.php new file mode 100644 index 0000000..a72601e --- /dev/null +++ b/tests/Utilities/GetKeyUtility.php @@ -0,0 +1,39 @@ + + * @license http://www.apache.org/licenses/LICENSE-2.0 + * @package Tests\Utilities + */ +final class GetKeyUtility { + /** + * @return string + */ + public static function get(): string { + $result = Dotenv::createImmutable(dirname(__DIR__, 2))->load(); + + return $result['EPG_SERVICE_KEY'] ?? ''; + } +} -- cgit v1.2.3