Completed
Push — master ( 804c7f...1d2ba7 )
by Dan Michael O.
01:59
created

FileSpec   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
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 Scriptotek\Alma\Bibs\Bib;
6
use Scriptotek\Alma\Bibs\Representation;
7
use Scriptotek\Alma\Bibs\File;
8
use Scriptotek\Alma\Client as AlmaClient;
9
use PhpSpec\ObjectBehavior;
10
use Prophecy\Argument;
11
12
class FileSpec extends ObjectBehavior
13
{
14
    public function let(AlmaClient $client, Bib $bib, Representation $representation)
15
    {
16
        $bib->mms_id = '990006312214702204';
17
        $representation->representation_id = '22163771200002204';
18
        $file_id = '23163771190002204';
19
20
        $this->beConstructedWith($client, $bib, $representation, $file_id);
21
    }
22
23
    public function it_is_initializable()
24
    {
25
        $this->shouldHaveType(File::class);
26
    }
27
28
}
29