AbstractCommonStepTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetCommand() 0 13 1
1
<?php
2
/**
3
 * Test suite for the CheckApp step.
4
 */
5
6
namespace Graviton\Deployment\Tests\Steps\CloudFoundry;
7
8
use Graviton\Deployment\DeployScriptsTestCase;
9
use Graviton\Deployment\Steps\CloudFoundry\StepApp;
10
11
/**
12
 * @author   List of contributors <https://github.com/libgraviton/deploy-scripts/graphs/contributors>
13
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
14
 * @link     http://swisscom.ch
15
 */
16
class AbstractCommonStepTest extends DeployScriptsTestCase
17
{
18
    /**
19
     * Validate getCommand
20
     *
21
     * @return void
22
     */
23
    public function testGetCommand()
24
    {
25
        $configuration = $this->getConfigurationSet();
26
27
        $step = $this->getMockBuilder('\Graviton\Deployment\Steps\CloudFoundry\AbstractCommonStep')
28
            ->setConstructorArgs(array($configuration, 'my_application', 'blue'))
29
            ->getMockForAbstractClass();
30
31
        $this->assertEquals(
32
            array('/usr/bin/cf' , null , 'my_application-blue'),
33
            $step->getCommand()
34
        );
35
    }
36
}
37