Code Duplication    Length = 10-11 lines in 4 locations

spec/Bibs/BibsSpec.php 2 locations

@@ 22-31 (lines=10) @@
19
        $client->sru = $sru;
20
    }
21
22
    public function it_provides_a_lazy_interface_to_bib_objects(AlmaClient $client)
23
    {
24
        SpecHelper::expectNoRequests($client);
25
26
        $mms_id = '123'; // str_random();
27
        $bib = $this->get($mms_id);
28
29
        $bib->shouldHaveType(Bib::class);
30
        $bib->mms_id->shouldBe($mms_id);
31
    }
32
33
    public function it_provides_a_lazy_array_interface_to_bib_objects(AlmaClient $client)
34
    {
@@ 33-42 (lines=10) @@
30
        $bib->mms_id->shouldBe($mms_id);
31
    }
32
33
    public function it_provides_a_lazy_array_interface_to_bib_objects(AlmaClient $client)
34
    {
35
        SpecHelper::expectNoRequests($client);
36
37
        $mms_id = '123'; // str_random();
38
        $bib = $this[$mms_id];
39
40
        $bib->shouldHaveType(Bib::class);
41
        $bib->mms_id->shouldBe($mms_id);
42
    }
43
44
    public function it_provides_lookup_by_isbn(AlmaClient $client, SruClient $sru)
45
    {

spec/Bibs/HoldingsSpec.php 2 locations

@@ 65-75 (lines=11) @@
62
        $this->beConstructedWith($client, $bib);
63
    }
64
65
    public function it_provides_a_lazy_interface_to_holding_objects(AlmaClient $client, Bib $bib)
66
    {
67
        SpecHelper::expectNoRequests($client);
68
69
        $holding_id = '12345'; // str_random();
70
        $holding = $this->get($holding_id);
71
72
        $holding->shouldHaveType(Holding::class);
73
        $holding->bib->shouldBe($bib);
74
        $holding->holding_id->shouldBe($holding_id);
75
    }
76
77
    public function it_provides_a_lazy_array_interface_to_holding_objects(AlmaClient $client, Bib $bib)
78
    {
@@ 77-87 (lines=11) @@
74
        $holding->holding_id->shouldBe($holding_id);
75
    }
76
77
    public function it_provides_a_lazy_array_interface_to_holding_objects(AlmaClient $client, Bib $bib)
78
    {
79
        SpecHelper::expectNoRequests($client);
80
81
        $holding_id = '90123'; // str_random();
82
        $holding = $this[$holding_id];
83
84
        $holding->shouldHaveType(Holding::class);
85
        $holding->bib->shouldBe($bib);
86
        $holding->holding_id->shouldBe($holding_id);
87
    }
88
89
    public function it_is_countable(AlmaClient $client, UriInterface $url)
90
    {