Code Duplication    Length = 12-12 lines in 2 locations

spec/Prophecy/Argument/Token/LogicalAndTokenSpec.php 1 location

@@ 23-34 (lines=12) @@
20
        $this->shouldNotBeLast();
21
    }
22
23
    function it_generates_string_representation_from_all_tokens_imploded(
24
        TokenInterface $token1,
25
        TokenInterface $token2,
26
        TokenInterface $token3
27
    ) {
28
        $token1->__toString()->willReturn('token_1');
29
        $token2->__toString()->willReturn('token_2');
30
        $token3->__toString()->willReturn('token_3');
31
32
        $this->beConstructedWith(array($token1, $token2, $token3));
33
        $this->__toString()->shouldReturn('bool(token_1 AND token_2 AND token_3)');
34
    }
35
36
    function it_wraps_non_token_arguments_into_ExactValueToken()
37
    {

spec/Prophecy/Argument/ArgumentsWildcardSpec.php 1 location

@@ 23-34 (lines=12) @@
20
        $this->__toString()->shouldMatch(sprintf('/^%s$/', sprintf(preg_quote("$objHash"), $hashRegexExpr, $hashRegexExpr)));
21
    }
22
23
    function it_generates_string_representation_from_all_tokens_imploded(
24
        TokenInterface $token1,
25
        TokenInterface $token2,
26
        TokenInterface $token3
27
    ) {
28
        $token1->__toString()->willReturn('token_1');
29
        $token2->__toString()->willReturn('token_2');
30
        $token3->__toString()->willReturn('token_3');
31
32
        $this->beConstructedWith(array($token1, $token2, $token3));
33
        $this->__toString()->shouldReturn('token_1, token_2, token_3');
34
    }
35
36
    function it_exposes_list_of_tokens(TokenInterface $token)
37
    {