Code Duplication    Length = 12-12 lines in 2 locations

spec/Felixkiss/UniqueWithValidator/ValidatorSpec.php 2 locations

@@ 30-41 (lines=12) @@
27
        $this->shouldHaveType('Felixkiss\UniqueWithValidator\Validator');
28
    }
29
30
    function it_passes_validation_if_presence_verifier_reports_no_existing_database_rows()
31
    {
32
        $this->presenceVerifier->getCount(Argument::cetera())->willReturn(0);
33
34
        $this->validateData(
35
            ['first_name' => 'unique_with:users,last_name'],
36
            [
37
                'first_name' => 'Foo',
38
                'last_name' => 'Bar',
39
            ]
40
        )->shouldReturn(true);
41
    }
42
43
    function it_fails_validation_if_presence_verifier_reports_existing_database_rows()
44
    {
@@ 43-54 (lines=12) @@
40
        )->shouldReturn(true);
41
    }
42
43
    function it_fails_validation_if_presence_verifier_reports_existing_database_rows()
44
    {
45
        $this->presenceVerifier->getCount(Argument::cetera())->willReturn(1);
46
47
        $this->validateData(
48
            ['first_name' => 'unique_with:users,last_name'],
49
            [
50
                'first_name' => 'Foo',
51
                'last_name' => 'Bar',
52
            ]
53
        )->shouldReturn(false);
54
    }
55
56
    function it_checks_presence_of_a_simple_two_field_combination_correctly()
57
    {