Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
18 | class EnvVarsSetterTest extends TestCase |
||
19 | { |
||
20 | /** @var DotenvParser|MockObject */ |
||
21 | private $parser; |
||
22 | |||
23 | /** @var EnvVarsSetter */ |
||
24 | private $setter; |
||
25 | |||
26 | private $envPath = './tests/fixtures/.env'; |
||
27 | |||
28 | public function setUp() |
||
29 | { |
||
30 | $this->parser = $this->getMockBuilder(DotenvParser::class) |
||
31 | ->setMethods(['parse']) |
||
32 | ->getMock(); |
||
33 | $this->parser->/** @scrutinizer ignore-call */method('parse')->willReturn(['TEST_FOO' => 'foo']); |
||
34 | $this->setter = new EnvVarsSetter($this->parser); |
||
35 | } |
||
36 | |||
37 | public function testEnvFileIsNotFoundWithWrongEnv() |
||
41 | } |
||
42 | |||
43 | public function testEnvFileIsFoundWithEnv() |
||
49 |