blob: bb0d557c8ca7c8dcf74ab550e3579f2f1afb3dcf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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',
];
}
}
|