VersionTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A test() 0 10 1
1
<?php
2
3
namespace Test;
4
5
use Basis\Test;
6
7
class VersionTest extends Test
8
{
9
    public function test()
10
    {
11
        $version = get_object_vars($this->dispatch('module.version')->version);
12
        $this->assertEquals($version, ['php' => PHP_VERSION, 'service' => null]);
13
14
        copy(dirname(getcwd()).'/composer.lock', getcwd().'/composer.lock');
15
        $version = get_object_vars($this->dispatch('module.version')->version);
16
        unlink(getcwd().'/composer.lock');
17
        $this->assertArrayHasKey('league/container', $version);
18
    }
19
}
20