DeployContainerTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConstruct() 0 14 1
1
<?php
2
3
/**
4
* This file is part of the Meup TagCommander Bundle.
5
*
6
* (c) 1001pharmacies <http://github.com/1001pharmacies/tagcommander-bundle>
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
11
12
namespace Meup\Bundle\TagcommanderBundle\EventDispatcher\Event;
13
14
use Meup\Bundle\TagcommanderBundle\EventDispatcher\Event\DeployContainer;
15
16
/**
17
 *
18
 */
19
class DeployContainerTest extends \PHPUnit_Framework_TestCase
20
{
21
    public function testConstruct()
22
    {
23
        $name        = 'lorem';
24
        $script      = 'ipsum';
25
        $version     = null;
26
        $alternative = null;
27
28
        $deployContainer = new DeployContainer($name, $script, $version, $alternative);
29
30
        $this->assertEquals($name, $deployContainer->getContainerName());
31
        $this->assertEquals($script, $deployContainer->getContainerScript());
32
        $this->assertEquals($version, $deployContainer->getContainerVersion());
33
        $this->assertEquals($alternative, $deployContainer->getContainerAlternative());
34
    }
35
}
36