StepLogoutTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetCommand() 0 10 1
1
<?php
2
/**
3
 * Test suite for the Logout step.
4
 */
5
6
namespace Graviton\Deployment\Tests\Steps\CloudFoundry;
7
8
use Graviton\Deployment\DeployScriptsTestCase;
9
use Graviton\Deployment\Steps\CloudFoundry\StepLogout;
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 StepLogoutTest extends DeployScriptsTestCase
17
{
18
    /**
19
     * Validate getCommand
20
     *
21
     * @return void
22
     */
23
    public function testGetCommand()
24
    {
25
        $configuration = $this->getConfigurationSet();
26
        $step = new StepLogout($configuration);
27
28
        $this->assertEquals(
29
            array('/usr/bin/cf', 'logout'),
30
            $step->getCommand()
31
        );
32
    }
33
}
34