Passed
Push — master ( 939a6b...8ca850 )
by Bence
03:55
created

CommandRunnerTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testRunningCommand() 0 8 1
1
<?php
2
3
namespace CSFCloud\Tests;
4
5
use PHPUnit\Framework\TestCase;
6
use CSFCloud\Shell\CommandRunner;
7
8
final class CommandRunnerTest extends TestCase {
9
10
    public function testRunningCommand() {
11
        $runner = new CommandRunner();
12
        $file = $runner->run(CommandRunner::COMMAND_SYNC, __DIR__ . "/RecFileListTestDir", "ls");
13
        $file_lists = $file->getText();
14
        $file->delete();
15
        $lines = explode("\n", $file_lists);
16
17
        $this->assertEquals(true, count($lines) > 2);
18
    }
19
20
}