Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class ShopConfigTest extends TestCase |
||
10 | { |
||
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 | } |
||
24 | |||
25 | public function testGetFail() |
||
30 | } |
||
31 | |||
32 | public function testGetFail2() |
||
37 | } |
||
38 | } |