Completed
Branch master (976354)
by DeGracia
02:56 queued 01:03
created

IntegrationTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A info() 0 15 1
1
<?php
2
3
namespace DeGraciaMathieu\Clike\Tests;
4
5
use PHPUnit\Framework\TestCase;
6
use DeGraciaMathieu\Clike\Lines;
7
use DeGraciaMathieu\Clike\Command;
8
use DeGraciaMathieu\Clike\Contracts;
9
10
class IntegrationTest extends TestCase {
11
    
12
    /** @test */
13
    public function info()
14
    {
15
        $command = new Command();
16
17
        $result = $command->execute(new Clear());
18
19
        $expectedArray = [
20
            [
21
                'type' => 'info',
22
                'content' => 'Output text...',
23
            ]
24
        ];
25
26
        $this->assertEquals($result['lines'], $expectedArray);        
27
    }
28
29
}
30