From 6f452ea995c25a30f214a530fddc6e9d236bdfce Mon Sep 17 00:00:00 2001 From: Александр Кирюхин Date: Fri, 19 Jan 2018 03:13:16 +0300 Subject: Completed reference implementation, added tests --- tests/mocks/MockLoader.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/mocks/MockLoader.php (limited to 'tests/mocks/MockLoader.php') diff --git a/tests/mocks/MockLoader.php b/tests/mocks/MockLoader.php new file mode 100644 index 0000000..bb0d557 --- /dev/null +++ b/tests/mocks/MockLoader.php @@ -0,0 +1,32 @@ + + * @license: MIT + */ + +use NeonXP\Dotenv\Loader\LoaderInterface; + +/** + * Class MockLoader + */ +class MockLoader implements LoaderInterface +{ + + /** + * Load not empty lines from file or other source + * @param string $filePath + * @return string[] + */ + public function load(string $filePath = '.env'): array + { + return [ + 'KEY1=VALUE1', + 'KEY2=VALUE2', + 'KEY3=VALUE3', + 'KEY4=VALUE4', + 'KEY5=VALUE5', + ]; + } +} \ No newline at end of file -- cgit v1.2.3