Total Complexity | 5 |
Total Lines | 71 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class FeatureTest extends TestCase |
||
11 | { |
||
12 | public function tearDown(): void |
||
16 | } |
||
17 | |||
18 | public function test_load_gacela_default_file(): void |
||
19 | { |
||
20 | Gacela::bootstrap(__DIR__); |
||
21 | |||
22 | $facade = new LocalConfig\Facade(); |
||
23 | |||
24 | self::assertSame( |
||
25 | [ |
||
26 | 'default_key' => 'from:default', |
||
27 | 'key' => 'from:default', |
||
28 | ], |
||
29 | $facade->doSomething() |
||
30 | ); |
||
31 | } |
||
32 | |||
33 | public function test_load_gacela_dev_file(): void |
||
34 | { |
||
35 | putenv('APP_ENV=dev'); |
||
36 | |||
37 | Gacela::bootstrap(__DIR__); |
||
38 | |||
39 | $facade = new LocalConfig\Facade(); |
||
40 | |||
41 | self::assertSame( |
||
42 | [ |
||
43 | 'default_key' => 'from:default', |
||
44 | 'key' => 'from:dev', |
||
45 | ], |
||
46 | $facade->doSomething() |
||
47 | ); |
||
48 | } |
||
49 | |||
50 | public function test_load_gacela_prod_file(): void |
||
64 | ); |
||
65 | } |
||
66 | |||
67 | public function test_load_gacela_default_file_if_custom_does_not_exists(): void |
||
81 | ); |
||
82 | } |
||
84 |