BashShellTest::executesShellCommands()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace AsyncPHP\Doorman\Tests\Shell;
4
5
use AsyncPHP\Doorman\Shell\BashShell;
6
use AsyncPHP\Doorman\Tests\Test;
7
8
/**
9
 * @covers AsyncPHP\Doorman\Shell\BashShell
10
 */
11
class BashShellTest extends Test
12
{
13
    /**
14
     * @var BashShell
15
     */
16
    protected $shell;
17
18
    /**
19
     * @inheritdoc
20
     */
21
    public function setUp()
22
    {
23
        parent::setUp();
24
25
        $this->shell = new BashShell();
26
    }
27
28
    /**
29
     * @test
30
     */
31
    public function executesShellCommands()
32
    {
33
        $this->assertEquals(array("hello world"), $this->shell->exec("echo %s", array("hello world")));
34
    }
35
}
36