BashShellTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 25
c 0
b 0
f 0
wmc 2
lcom 1
cbo 2
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 6 1
A executesShellCommands() 0 4 1
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