Code Duplication    Length = 10-11 lines in 3 locations

spec/Renderer/HtmlSpec.php 3 locations

@@ 38-48 (lines=11) @@
35
        $this->renderDice([$dice])->shouldReturn('<img src="URL/images/poorly-drawn/d20/14.png" />');
36
    }
37
38
    function it_returns_many_images_for_many_d6(Dice $diceOne, Dice $diceTwo)
39
    {
40
        $diceOne->roll()->willReturn(2);
41
        $diceOne->name()->willReturn("d6");
42
43
44
        $diceTwo->roll()->willReturn(5);
45
        $diceTwo->name()->willReturn("d6");
46
47
        $this->renderDice([$diceOne, $diceTwo])->shouldReturn('<img src="URL/images/poorly-drawn/d6/2.png" /><img src="URL/images/poorly-drawn/d6/5.png" />');
48
    }
49
50
    function it_returns_many_images_for_many_d20(Dice $diceOne, Dice $diceTwo)
51
    {
@@ 50-60 (lines=11) @@
47
        $this->renderDice([$diceOne, $diceTwo])->shouldReturn('<img src="URL/images/poorly-drawn/d6/2.png" /><img src="URL/images/poorly-drawn/d6/5.png" />');
48
    }
49
50
    function it_returns_many_images_for_many_d20(Dice $diceOne, Dice $diceTwo)
51
    {
52
        $diceOne->roll()->willReturn(7);
53
        $diceOne->name()->willReturn("d20");
54
55
56
        $diceTwo->roll()->willReturn(12);
57
        $diceTwo->name()->willReturn("d20");
58
59
        $this->renderDice([$diceOne, $diceTwo])->shouldReturn('<img src="URL/images/poorly-drawn/d20/7.png" /><img src="URL/images/poorly-drawn/d20/12.png" />');
60
    }
61
62
    function it_returns_many_images_for_d6_and_d20(Dice $diceOne, Dice $diceTwo)
63
    {
@@ 62-71 (lines=10) @@
59
        $this->renderDice([$diceOne, $diceTwo])->shouldReturn('<img src="URL/images/poorly-drawn/d20/7.png" /><img src="URL/images/poorly-drawn/d20/12.png" />');
60
    }
61
62
    function it_returns_many_images_for_d6_and_d20(Dice $diceOne, Dice $diceTwo)
63
    {
64
        $diceOne->roll()->willReturn(3);
65
        $diceOne->name()->willReturn("d6");
66
67
        $diceTwo->roll()->willReturn(11);
68
        $diceTwo->name()->willReturn("d20");
69
70
        $this->renderDice([$diceOne, $diceTwo])->shouldReturn('<img src="URL/images/poorly-drawn/d6/3.png" /><img src="URL/images/poorly-drawn/d20/11.png" />');
71
    }
72
73
    function it_throws_an_exception_if_it_tries_to_render_a_non_d6_or_non_d20(Dice $wrongSizedDice)
74
    {