Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function testGet() |
||
12 | { |
||
13 | $shopConfig = new ShopConfig(__DIR__ . '/.env'); |
||
14 | |||
15 | $this->assertSame('mysql', $shopConfig->get('type')); |
||
16 | $this->assertSame('fooBarHost', $shopConfig->get('host')); |
||
17 | $this->assertSame(3306, $shopConfig->get('port')); |
||
18 | $this->assertSame('db', $shopConfig->get('dbname')); |
||
19 | $this->assertSame('foo', $shopConfig->get('username')); |
||
20 | $this->assertSame('bar', $shopConfig->get('password')); |
||
21 | |||
22 | $this->assertNull($shopConfig->get('foobar')); |
||
23 | } |
||
38 | } |