Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class INIConfigTest extends AbstractConfigTest |
||
14 | { |
||
15 | public function test_constructMissing() : void |
||
16 | { |
||
17 | // test for not existing config file |
||
18 | $this->expectError(); |
||
19 | $cfg = new INIConfig('missing.ini'); |
||
20 | $cfg->getString('test'); |
||
21 | } |
||
22 | |||
23 | public function test_constructNull() : AbstractConfig |
||
24 | { |
||
25 | $cfg = new INIConfig(dirname(__FILE__) . '/testdata/TestConfig.ini'); |
||
26 | $this->assertIsObject($cfg); |
||
27 | |||
28 | return $cfg; |
||
29 | } |
||
30 | |||
31 | public function test_construct() : AbstractConfig |
||
32 | { |
||
33 | $cfg = new INIConfig(dirname(__FILE__) . '/testdata/TestConfig.ini'); |
||
34 | $this->assertIsObject($cfg); |
||
35 | |||
36 | return $cfg; |
||
37 | } |
||
40 |