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

CommandRunnerTest::testRunningCommand()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
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
}