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

IntegrationTest::info()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 9.7666
c 0
b 0
f 0
cc 1
nc 1
nop 0
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