DownloadTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2
Metric Value
dl 0
loc 12
wmc 1
lcom 0
cbo 2
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConstruct() 0 9 1
1
<?php
2
3
namespace Fmaj\LaposteDatanovaBundle\Tests\Model;
4
5
use Fmaj\LaposteDatanovaBundle\Model\Download;
6
7
class DownloadTest extends \PHPUnit_Framework_TestCase
8
{
9
    public function testConstruct()
10
    {
11
        $dataset = uniqid();
12
        $format = uniqid();
13
        $download = new Download($dataset, $format);
14
        $this->assertEquals($dataset, $download->getDataset());
15
        $this->assertEquals($format, $download->getFormat());
16
        $this->assertCount(2, $download->getParameters());
17
    }
18
}
19