| Total Complexity | 4 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| 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 | 'key' => 'from:default', |
||
| 27 | ], |
||
| 28 | $facade->doSomething() |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function test_load_gacela_dev_file(): void |
||
| 33 | { |
||
| 34 | putenv('APP_ENV=dev'); |
||
| 35 | |||
| 36 | Gacela::bootstrap(__DIR__); |
||
| 37 | |||
| 38 | $facade = new LocalConfig\Facade(); |
||
| 39 | |||
| 40 | self::assertSame( |
||
| 41 | [ |
||
| 42 | 'key' => 'from:dev', |
||
| 43 | ], |
||
| 44 | $facade->doSomething() |
||
| 45 | ); |
||
| 46 | } |
||
| 47 | |||
| 48 | public function test_load_gacela_prod_file(): void |
||
| 61 | ); |
||
| 62 | } |
||
| 63 | } |
||
| 64 |