Code Duplication    Length = 15-15 lines in 2 locations

spec/Prophecy/Argument/ArgumentsWildcardSpec.php 2 locations

@@ 66-80 (lines=15) @@
63
        $this->scoreArguments(array('one', 2, $obj))->shouldReturn(18);
64
    }
65
66
    function it_returns_false_if_there_is_less_arguments_than_tokens(
67
        TokenInterface $token1,
68
        TokenInterface $token2,
69
        TokenInterface $token3
70
    ) {
71
        $token1->scoreArgument('one')->willReturn(3);
72
        $token1->isLast()->willReturn(false);
73
        $token2->scoreArgument(2)->willReturn(5);
74
        $token2->isLast()->willReturn(false);
75
        $token3->scoreArgument(null)->willReturn(false);
76
        $token3->isLast()->willReturn(false);
77
78
        $this->beConstructedWith(array($token1, $token2, $token3));
79
        $this->scoreArguments(array('one', 2))->shouldReturn(false);
80
    }
81
82
    function it_returns_false_if_there_is_less_tokens_than_arguments(
83
        TokenInterface $token1,
@@ 98-112 (lines=15) @@
95
        $this->scoreArguments(array('one', 2, $obj, 4))->shouldReturn(false);
96
    }
97
98
    function it_should_return_false_if_one_of_the_tokens_returns_false(
99
        TokenInterface $token1,
100
        TokenInterface $token2,
101
        TokenInterface $token3
102
    ) {
103
        $token1->scoreArgument('one')->willReturn(3);
104
        $token1->isLast()->willReturn(false);
105
        $token2->scoreArgument(2)->willReturn(false);
106
        $token2->isLast()->willReturn(false);
107
        $token3->scoreArgument($obj = new \stdClass())->willReturn(10);
108
        $token3->isLast()->willReturn(false);
109
110
        $this->beConstructedWith(array($token1, $token2, $token3));
111
        $this->scoreArguments(array('one', 2, $obj))->shouldReturn(false);
112
    }
113
114
    function it_should_calculate_score_until_last_token(
115
        TokenInterface $token1,