FileSpec   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A let() 0 8 1
A it_is_initializable() 0 4 1
1
<?php
2
3
namespace spec\Scriptotek\Alma\Bibs;
4
5
use PhpSpec\ObjectBehavior;
6
use Scriptotek\Alma\Bibs\Bib;
7
use Scriptotek\Alma\Bibs\File;
8
use Scriptotek\Alma\Bibs\Representation;
9
use Scriptotek\Alma\Client as AlmaClient;
10
11
class FileSpec extends ObjectBehavior
12
{
13
    public function let(AlmaClient $client, Bib $bib, Representation $representation)
14
    {
15
        $bib->mms_id = '990006312214702204';
16
        $representation->representation_id = '22163771200002204';
17
        $file_id = '23163771190002204';
18
19
        $this->beConstructedWith($client, $bib, $representation, $file_id);
20
    }
21
22
    public function it_is_initializable()
23
    {
24
        $this->shouldHaveType(File::class);
25
    }
26
}
27