TrackTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConstruct() 0 12 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\Track;
15
16
/**
17
 *
18
 */
19
class TrackTest extends \PHPUnit_Framework_TestCase
20
{
21
    public function testConstruct()
22
    {
23
        $tracker = 'lorem';
24
        $event   = 'ipsum';
25
        $values  = array('foo' => 'bar');
26
27
        $track = new Track($tracker, $event, $values);
28
29
        $this->assertEquals($tracker, $track->getTrackerName());
30
        $this->assertEquals($event, $track->getEventName());
31
        $this->assertEquals($values, $track->getValues());
32
    }
33
}
34