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

ConfigTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A test() 0 12 1
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