From 81687eb05afd20022459054390186a7d3314822b Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 15 Jul 2020 16:14:14 +0400 Subject: Utility of get environment Signed-off-by: Valentin Popov --- tests/Utilities/GetServiceEnvironment.php | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 tests/Utilities/GetServiceEnvironment.php diff --git a/tests/Utilities/GetServiceEnvironment.php b/tests/Utilities/GetServiceEnvironment.php new file mode 100644 index 0000000..cba08ae --- /dev/null +++ b/tests/Utilities/GetServiceEnvironment.php @@ -0,0 +1,38 @@ + + * @license http://www.apache.org/licenses/LICENSE-2.0 + * @package Tests\Utilities + */ +final class GetServiceEnvironment { + /** + * @return \EPGService\Environments\ServiceEnvironment + */ + public static function get(): ServiceEnvironment { + $key = GetKeyUtility::get(); + + return ServiceEnvironment::create($key); + } +} -- cgit v1.2.3