diff options
Diffstat (limited to 'tests/mocks/MockLoader.php')
-rw-r--r-- | tests/mocks/MockLoader.php | 32 |
1 files changed, 32 insertions, 0 deletions
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 @@ +<?php +declare(strict_types=1); + +/** + * @author: Alexander Kiryukhin <alexander@kiryukhin.su> + * @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 |