Passed
Push — master ( 8c0b29...3c21da )
by Mike
02:50
created

FacadeTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 3
dl 0
loc 31
rs 10
c 0
b 0
f 0
1
<?php
2
namespace NexusTest\Shell;
3
4
use Xervice\Core\Locator\Locator;
5
6
class FacadeTest extends \Codeception\Test\Unit
7
{
8
    /**
9
     * @var \Nexus\Shell\ShellFacade
10
     */
11
    private $facade;
12
13
    protected function _before()
14
    {
15
        $this->facade = Locator::getInstance()->shell()->facade();
16
    }
17
18
    /**
19
     * @group Nexus
20
     * @group Shell
21
     * @group Facade
22
     * @group Integration
23
     */
24
    public function testRunCommand()
25
    {
26
        $command = sprintf(
27
            'cat %s/testDir/findme',
28
            __DIR__
29
        );
30
31
        $this->assertEquals(
32
            'test',
33
            $this->facade->runCommand($command)
34
        );
35
    }
36
}