Completed
Push — master ( bff253...2705ab )
by Dmitry
05:49 queued 01:23
created

ConfigTest::test()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 0
1
<?php
2
3
namespace Test;
4
5
use Basis\Config;
6
7
class ConfigTest extends TestSuite
8
{
9
    public function test()
10
    {
11
        $config = $this->app->get(Config::class);
12
        $this->assertInstanceOf(Config::class, $config);
13
14
        $this->assertSame($config, $this->app->get(Config::class));
15
16
        $this->assertSame($config['service'], 'example');
17
        $this->assertSame($config['environment'], 'testing');
18
        $this->assertSame($config['etcd.connection'], 'http://etcd:2379');
19
        $this->assertCount(4, get_object_vars($config));
20
    }
21
}
22